Name

groupdel group — shadow-utils

Synopsis

/usr/sbin stdin stdout - file -- opt --help --version

The groupdel command deletes an existing group.

# groupdel friends

Before doing this, it’s a good idea to identify all files that have their group ID set to the given group, so you can deal with them later:

# find / -group friends -print

because groupdel does not change the group ownership of any files. It simply removes the group name from the system’s records.

Get Linux Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.