create a group and add user in single command code example Example: add user to group usermod -a -G examplegroup exampleusername