728x90
아래 명령어는 실제 console 에서 사용해 보면 바로 이해가 된다.
전체 목록 확인
cat /etc/passwd
아이디만 확인
cut -f1 -d: /etc/passwd
USERADD 를 통해 등록된 계정만 보기
grep /bin/bash /etc/passwd
아이디만 짤라서 보여줌
grep /bin/bash /etc/passwd | cut -f1 -d:
'Ubuntu > linux Command' 카테고리의 다른 글
Linux command (rcp) (0) | 2021.09.22 |
---|---|
Linux Command (tree) (0) | 2021.09.22 |
Linux Command (sftp) (0) | 2021.09.06 |
Linux command (scp) (0) | 2021.09.05 |
Linux command : SSH (0) | 2021.09.05 |