uid 500과 같거나 큰 유저 출력하기 - 넘 잼없는 강좌
글쓴이: pingis / 작성시간: 목, 2012/10/25 - 6:07오전
young@lb2:~$ awk -F: '$3 >= 500 {print $0 }' /etc/passwd
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
young:x:1000:1000:young,,,:/home/young:/bin/bash
tomcat:x:1001:46::/opt/tomcat/temp:/bin/sh
jira:x:1002:1002:Atlassian JIRA:/home/jira:/bin/sh
jira1:x:1003:1003:Atlassian JIRA:/home/jira1:/bin/sh
[root@node1 ~]# awk -F: '$3 >= 500 {print $0 }' /etc/passwd
young:x:500:500::/home/young:/bin/bash
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
-곧 쓰러져,죽을때, 영혼의 눈엔 누가 보일까?-
Forums:
댓글 달기