How To Delete a User in Linux - Quick Guide


how to delete a user in linux

Fix Windows errors with Fortect:
Fortect can repair common computer errors by scanning your entire system for damaged or missing OS files and replacing them with the original, working versions. Optimize your PC in 3 simple steps:

  1. Download and Install Fortect on your PC
  2. Use the PC Scan feature to look up any Windows issues (including drivers)
  3. Right-click on Repair, and fix it within a few minutes.

Besides that, it helps you clean up junk files, fix stability problems, and get rid of annoying programs and malware traces.

Don’t know how to delete a user in Linux? For this, execute the userdel command:

1. Press CTRL+ALT+T to open the terminal.

2. Type “sudo userdel username” and hit Enter.

deleting a user with userdel command

3. Run the “cat /etc/passwd” command for verification.

checking the content of passwd file

You may also be interested in:

So, now you know how to delete a user in Linux. Feel free to share any tips in the comments below!

Readers help support MSpoweruser. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more

User forum

0 messages