Delete User in Linux

Delete User in Linux

 Delete User in Linux


Use userdel command to delete existing users from the Linux system.

Syntax:

$ userdel [options]  USER_NAME

Example:

The below command will delete the user myuser from your system but keep the home directory.

$ userdel myuser

Use -r or –remove to remove the home directory with content also.

$ userdel --remove myuser
Souy Soeng

Souy Soeng

Our website teaches and reads PHP, Framework Laravel, and how to download Admin template sample source code free. Thank you for being so supportive!

Github

Post a Comment

CAN FEEDBACK
close