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