There are two main type of groups in Linux OS. Primary group and
Secondary group or Supplementary group.
Primary group is auto generated when we add users in Linux. When user
creates files or directories these files will receives owner and group owner
settings as the creator user.
Secondary groups we are going to create in Linux for user administration
and permission management. We can add users as required to assign
permissions in the filesystem. Secondary group also often called as
Supplementary groups.
#groupadd group_name
#groupadd cisco
#groupadd HR
#groupadd Purchase
#groupadd test_group
#groupmod -n Project test_group
#usermod -G cisco user1
#gpasswd –M user100,user101 demogroup
#gpasswd -M user1,user2 cisco
#usermod -g HR user2
#gpasswd -d user2 cisco
#groupadd ccna
#groupadd ccnp
#groupadd ccie
#usermod -aG ccna user2
#usermod -aG ccnp user2
#usermod -aG ccie user2
#cat /etc/group Verify the result
#groupdel Purchase
#groupdel demogroup