What are other user management commands?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 18 2025
0150

Here are some essential user management commands in Linux:

  1. adduser / useradd: Create a new user account.

    • Example: sudo adduser newuser
  2. usermod: Modify an existing user account (e.g., change username, home directory, or group membership).

    • Example: sudo usermod -l newname oldname
  3. deluser / userdel: Remove a user account.

    • Example: sudo deluser username
  4. passwd: Change a user's password.

    • Example: sudo passwd username
  5. chage: Change user password expiry information.

    • Example: sudo chage -E 2023-12-31 username
  6. groups: Display the groups a user belongs to.

    • Example: groups username
  7. id: Show user ID (UID) and group ID (GID) information.

    • Example: id username
  8. su: Switch to another user account.

    • Example: su - username
  9. who: Show who is currently logged into the system.

  10. w: Display who is logged in and what they are doing.

These commands are fundamental for managing user accounts and permissions in a Linux environment. If you need more details or examples for any specific command, feel free to ask!

0 Comments

no data
Be the first to share your comment!