| Practical uses |
- usermod -g <group> <user>: Change the primary group of the <user> to <group>.
- usermod -aG <group> <user>: Add the <user> to the <group>. For the user, this will be a supplementary group.
- usermod -s <shell> <user>: Set the login shell for the <user>.
- usermod -md <homedir> <user>: Move the <user>s home directory to <homedir>.
|