Open In App

groupmod command in Linux with examples

groupmod command in Linux is used to modify or change the existing group on Linux system. It can be handled by superuser or root user. Basically, it modifies a group definition on the system by modifying the right entry in the database of the group. Syntax:

groupmod [option] GROUP

Files: The groupmod command has following files.



Exit Values:

Options: There are following option available in groupmod command.



Example: Below command will change the group group_old to group_new using -n option.

groupmod -n group_new group_old
Article Tags :