본문 바로가기
Linux/Shell

id 명령어 옵션

by Sondho 2020. 11. 19.
-A 권한이 필요한 프로세스 감사 사용자 ID 및 기타 프로세스 감사 속성을 표시하십시오.
-F 사용자의 전체 이름 표시
-G 서로 다른 그룹 ID(유효한, 실제 및 보조)를 특정 순서 없이 공백으로 구분된 숫자로 표시하십시오.
-M 현재 공정의 MAC 라벨 표시
-P ID를 비밀번호 파일 항목으로 표시.
-a 다른 ID 구현과의 호환성을 위해 무시됨.
-g 유효 그룹 ID를 숫자로 표시한다.
-n 숫자 대신 -G, -g 및 -u 옵션에 대한 사용자 또는 그룹 ID 이름을 표시하십시오.  ID 번호 중 어느 하나라도 이름으로 매핑할 수 없는 경우, 그 번호는 평소와 같이 표시된다.
-p 출력물을 사람이 읽을 수 있도록 만드십시오.  getlogin(2)에서 반환된 사용자 이름이 사용자 ID에서 참조한 로그인 이름과 다를 경우 getlogin(2)에서 반환된 이름이 표시되고, 키워드 ''로그인'''이 앞에 나타난다.  이름으로서의 사용자 ID가 표시되고, 키워드 'uid'가 뒤에 나온다.  유효 사용자 ID가 실제 사용자 ID와 다를 경우, 실제 사용자 ID는 키워드 'euid'에 이어 이름으로 표시된다.
유효 그룹 ID가 실제 그룹 ID와 다를 경우, 실제 그룹 ID는 키워드 'rgid'에 이어 이름으로 표시된다.  그런 다음 사용자가 속한 그룹 목록이 이름으로 표시되고, 키워드 '그룹'이 뒤에 나온다.
각각의 디스플레이는 별도의 라인에 있다.
-r 유효 ID 대신 -g 및 -u 옵션의 실제 ID 표시
-u 유효 사용자 ID를 숫자로 표시

-A  Display the process audit user ID and other process audit properties, which requires privilege.
-F Display the full name of the user.
-G Display the different group IDs (effective, real and supplementary) as white-space separated numbers, in no particular order.
-M Display the MAC label of the current process.
-P Display the id as a password file entry.
-a Ignored for compatibility with other id implementations.
-g Display the effective group ID as a number.
-n Display the name of the user or group ID for the -G, -g and -u options instead of the number.  If any of the ID numbers cannot be mapped into names, the number will be displayed as usual.
-p Make the output human-readable.  If the user name returned by getlogin(2) is different from the login name referenced by the user ID, the name returned by getlogin(2) is displayed, preceded by the keyword ``login''.  The user ID as a name is displayed, preceded by the keyword ``uid''. If the effective user ID is different from the real user ID, the real user ID is displayed as a name, preceded by the keyword ``euid''. If the effective group ID is different from the real group ID, the real group ID is displayed as a name, preceded by the keyword ``rgid''.  The list of groups to which the user belongs is then displayed as names, preceded by the keyword ``groups''. Each display is on a separate line.
-r Display the real ID for the -g and -u options instead of the effective ID.
-u Display the effective user ID as a number.

 

'Linux > Shell' 카테고리의 다른 글

tr 명령어 옵션  (0) 2020.11.20
group 명령어  (0) 2020.11.19
find 명령어 옵션  (0) 2020.11.19
ls 명령어 옵션  (0) 2020.11.19
zip, unzip 명령어  (0) 2020.08.07

댓글