How To Delete a User in Linux - Quick Guide

Reading time icon 1 min. read

Readers help support MSPoweruser. When you make a purchase using links on our site, we may earn an affiliate commission. Tooltip Icon

Read the affiliate disclosure page to find out how can you help MSPoweruser effortlessly and without spending any money. 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!

More about the topics: linux