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