"리눅스 groups"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 Groups 문서를 리눅스 groups 문서로 옮겼습니다)
 
(사용자 3명의 중간 판 8개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;groups
;리눅스 groups
;/usr/bin/groups
;/usr/bin/groups
*지정한 계정이 속한 그룹의 목록을 보여주는 리눅스 명령어


<source lang='dos'>
==문법==
[root@jmnote ~]# groups
<source lang='bash'>
root bin daemon sys adm disk wheel
groups [옵션] [사용자]
</source>
 
{| class="wikitable"
|-
! 옵션 !! 설명
|-
| --help || 설명 출력
|-
| --version || 버전 출력
|}
 
==실습==
<source lang='console'>
[root@zetawiki ~]# groups
root
</source>
:→ 그냥 실행하면 자기계정의 그룹들을 보여줌
<source lang='console'>
[root@zetawiki ~]# groups bin
bin : bin daemon sys
</source>
:→ bin계정은 3개의 그룹(bin, daemon, sys)에 속해 있음
<source lang='console'>
[root@zetawiki ~]# cat /etc/passwd | grep ^bin
bin:x:1:1:bin:/bin:/sbin/nologin
</source>
<source lang='console'>
[root@zetawiki ~]# cat /etc/group | grep bin
bin:x:1:bin,daemon
daemon:x:2:bin,daemon
sys:x:3:bin,adm
</source>
</source>


==같이 보기==
==같이 보기==
*[[chgrp]]
*[[리눅스 chgrp]]
*[[리눅스 newgrp]]
*[[리눅스 그룹 목록 보기]]
*[[리눅스 그룹 목록 보기]]
*[[리눅스 여러 그룹에 속한 계정 생성]]


[[분류:/usr/bin]]
[[분류:/usr/bin]]

2018년 9월 22일 (토) 00:49 기준 최신판

1 개요[ | ]

리눅스 groups
/usr/bin/groups
  • 지정한 계정이 속한 그룹의 목록을 보여주는 리눅스 명령어

2 문법[ | ]

groups [옵션] [사용자]
옵션 설명
--help 설명 출력
--version 버전 출력

3 실습[ | ]

[root@zetawiki ~]# groups
root
→ 그냥 실행하면 자기계정의 그룹들을 보여줌
[root@zetawiki ~]# groups bin
bin : bin daemon sys
→ bin계정은 3개의 그룹(bin, daemon, sys)에 속해 있음
[root@zetawiki ~]# cat /etc/passwd | grep ^bin
bin:x:1:1:bin:/bin:/sbin/nologin
[root@zetawiki ~]# cat /etc/group | grep bin
bin:x:1:bin,daemon
daemon:x:2:bin,daemon
sys:x:3:bin,adm

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}