How To Delete a User in Linux - Quick Guide

Reading time icon 1 min. read


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

how to delete a user in linux

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!

User forum

0 messages