Trevor Williams/DigitalVision via Getty
Follow ZDNET: Add us as a preferred source on Google.
The usermod command is short for user modification, and, as the name implies, allows you to modify various aspects of a user account.
For a Linux administrator, this command is crucial. For Linux users, the command most certainly comes in handy, especially given what it can do.
Let's dive down this rabbit hole and see what's what with the Linux usermod command.
1. Change user details
When you create a Linux user with the adduser command, you can include certain details to go along with the new user (such as full name, office and home phone numbers, and other information, which can be used as a description. After you've created the user, the only way to change or add such information is via the usermod command. Say, for instance, you want to add a comment for a user. To do that, you would issue the command:
sudo usermod -c "INFORMATION" USER
Also: 5 surprisingly productive things you can do with the Linux terminal
Where INFORMATION is what you want to add, and USER is the user account you want to change.
... continue reading