mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 17:47:35 +00:00
Update cheatsheets
This commit is contained in:
18
linux/groupmod
Normal file
18
linux/groupmod
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# groupmod
|
||||
|
||||
> Modify existing user groups in the system.
|
||||
> See also: `groups`, `groupadd`, `groupdel`.
|
||||
> More information: <https://manned.org/groupmod>.
|
||||
|
||||
- Change the group name:
|
||||
|
||||
`sudo groupmod --new-name {{new_group}} {{group_name}}`
|
||||
|
||||
- Change the group id:
|
||||
|
||||
`sudo groupmod --gid {{new_id}} {{group_name}}`
|
||||
Reference in New Issue
Block a user