groupadd command code example
Example 1: how to create a user and add it to a group in linux
useradd -G examplegroup exampleusername
Example 2: linux append group
usermod -a -G examplegroup exampleusername
useradd -G examplegroup exampleusername
usermod -a -G examplegroup exampleusername