GO KALI FREE
User Management

userdel Linux Command

Deletes a user account. Use -r to also remove the home directory.

What does userdel do?

Deletes a user account. Use -r to also remove the home directory.

Syntax

userdel [options] username

Practical example

sudo userdel -r john

Related User Management

usermod

Modifies an existing user account (groups, shell, home directory, etc.).

groupadd

Creates a new group on the system.

useradd

Creates a new user account on the system.

groupdel

Deletes an existing group from the system.

passwd

Changes the password for a user account.

groups

Displays all groups the current user is a member of.