Execute the given command.
- useradd
- usedmod
- userdel
- passwd
- groupadd
- groupmod
- groupdel
- These commands are related to user and group management in Linux/UNIX. Here’s a brief overview of each command:
useradd
: This command is used to add a new user account to the system. For example, to add a new user named “joe”, you would type:
useradd joe
usermod
: This command is used to modify an existing user account. For example, to change the home directory for the user “jdoe” to /home/jdoe, you would type:
usermod -d /home/jdoe jdoe
userdel
: This command is used to delete an existing user account. For example, to delete the user “joe”, you would type:
userdel joe
passwd
: This command is used to change the password for a user account. For example, to change the password for the user “joe”, you would type:
passwd joe
groupadd
: This command is used to add a new group to the system. For example, to add a new group named “developers”, you would type:
groupadd developers
groupmod
: This command is used to modify an existing group. For example, to change the name of the “developers” group to “devs”, you would type:
groupmod -n devs developers
groupdel
: This command is used to delete an existing group. For example, to delete the “devs” group, you would type:
groupdel devs
- Note that these commands usually require superuser (root) privileges to execute, and their exact usage may vary depending on the specific Linux/UNIX distribution being used.