Forrest logo
back to context overview

usermod

List of commands for usermod:

  • usermod:ai:14647 Adds user Jeffrey to the sudo group
    $ usermod -aG Jeffrey
    try on your machine
    explain this command
  • usermod:ai:af372 This command adds a user to a specific group in Linux.
    $ usermod -a -G groupName username
    try on your machine
    explain this command
  • usermod:tldr:13b44 usermod: Change a username.
    $ sudo usermod --login ${new_username} ${username}
    try on your machine
    explain this command
  • usermod:tldr:22350 usermod: Change a user home directory.
    $ sudo usermod --move-home --home ${path-to-new_home} ${username}
    try on your machine
    explain this command
  • usermod:tldr:4876a usermod: Change a user id.
    $ sudo usermod --uid ${id} ${username}
    try on your machine
    explain this command
  • usermod:tldr:873e4 usermod: Add a user to supplementary groups (mind the lack of whitespace).
    $ sudo usermod --append --groups ${group1,group2,---} ${username}
    try on your machine
    explain this command
  • usermod:tldr:c0554 usermod: Change a user shell.
    $ sudo usermod --shell ${path-to-shell} ${username}
    try on your machine
    explain this command
back to context overview