The userdel command deletes a user account from the system and makes the appropriate account-related changes to the system file and file system.
Use userdel command to remove user account rockyjr (but not home directory only remove entry from /etc/passwd and /etc/shadow files)
# userdel rockyjr
Pass -r option to userdel command to remove users home directory and login information:
# userdel -r rockyjr
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins

- My 10 UNIX Command Line Mistakes
- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
Facebook it - Tweet it - Print it -
We're here to help you make the most of sysadmin work. So, subscribe!
