How to Configure Linux TCP keepalive Setting

How to Delete User Account in Linux

There is an easy way to delete the user account on linux which is using userdel command. You can read the manual page of this userdel command by typing ‘man userdel‘ at you terminal as below:

Example :

Userdel with option -r will removed user’s home directory and the user’s mail spool

Userdel without -r will only removed user from /etc/passwd/etc/group and /etc/shadow but the following directory still exist.

To remove this directory manually, you have to run below command: