English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux groupmod 명령어

Linux 명령어大全

Linux groupmod 명령어는 그룹 인식 코드나 이름을 변경하는 데 사용됩니다。

그룹 인식 코드나 이름을 변경할 때는 groupmod 명령어를 사용하여 이 작업을 수행할 수 있습니다。

문법

groupmod [-g <그룹 인식 코드> <-o>][-n <신규 그룹 이름>][그룹 이름]

파라미터

  • -g <그룹 인식 코드>  사용하고자 하는 그룹 인식 코드를 설정합니다。
  • -o  그룹 인식 코드를 반복 사용합니다。
  • -n <신규 그룹 이름>  사용하고자 하는 그룹 이름을 설정합니다。

온라인 예제

그룹 이름 변경

[[email protected] ~]# groupadd linuxso 
[[email protected] ~]# tail -1 /etc/group 
linuxso:x:500: 
[[email protected] ~]# tail -1 /etc/group 
linuxso:x:500: 
[[email protected] ~]# groupmod -n linux linuxso 
[[email protected] ~]# tail -1 /etc/group 
linux:x:500:

Linux 명령어大全