add users to group linux code example
Example 1: add user to group
usermod -a -G examplegroup exampleusername
Example 2: linux add user to group
# add user to additional group
usermod -G groupname username
Example 3: how to create a user and add it to a group in linux
useradd -G examplegroup exampleusername