nobody:x:1:0:root:/root
root:x:2:0:root:/root
1234:x:3:0:root:/root
asdf:x:4:0:root:/root
qwer:x:5:1:root:/root
zxcv:x:6:0:root:/root
1,2,3,4,5,6 값 확인하기
cat /etc/passwd | cut -d ":" -f2
3번쨰 필드 중에 0이 포함된 아이들만 확인하기
cat /etc/passwd | cut -d ":" -f3 | grep "0"'Linux-centos > Linux-centos__works' 카테고리의 다른 글
| 파일이름+날짜 형식으로 변경해주기 (0) | 2020.10.06 |
|---|---|
| 명령어 정리 (1) | 2020.06.24 |
| 부모없는 zombie process (0) | 2020.04.07 |
| nslookup (0) | 2020.03.09 |
| 디스크 마운트 (0) | 2020.02.20 |