linux create group and user code example
Example 1: how to create a user and add it to a group in linux
useradd -G examplegroup exampleusername
Example 2: how to create a new group in linux
groupadd [OPTIONS] GROUPNAME
useradd -G examplegroup exampleusername
groupadd [OPTIONS] GROUPNAME