19 February 2018

LINUX - Delete user account and its home directory

[Tested On]
CentOS Linux release 7.4.1708 (Core)

First please verify user home directory 
# cat /etc/passwd | grep {user}

testuser:x:1001:1002::/home/testuser:/bin/bash

--- /home/testuser - is the user home directory

To delete the user and everything in its home directory, issue the command below

# userdel --remove test





No comments:

Wordpress - Local installation in Vmware

If you're interested in exploring website design with WordPress, this guide will help you set up a WordPress instance on your local mach...