The Be Sure Blog

Code Snippets | Problem Solving | Tips & Tricks

The Be Sure Blog banner

How to delete an user in the Ubuntu terminal

posted on 12.1.2023 by Below Surface in "Ubuntu"

To display all local users, run

$ cut -d: -f1 /etc/passwd


To delete an user - for example a user named "jim", run:

$ sudo userdel jim

Tags:

ubuntu
linux
user management

Sources:

https://askubuntu.com/questions/410244/is-there-a-command-to-list-all-users-also-to-add-delete-modify-users-in-the

More posts of this category

User permissons for folders and files in Ubuntu

Learn how to see which user has which rights and how to change them

Ubuntu

How to increase the Swap Memory size in Ubuntu

When 512mb are not enough, why not change it to 2gb?

Ubuntu