CompTIA Linux+ XK0-005 Practice Question
As a system administrator, you need to remove a user's account from a Linux system. The user's account, 'johndoe', must be deleted along with the user's home directory and mail spool. Which command should you use to accomplish this task?
userdel -r johndoe
deluser johndoe
userdel johndoe
removeuser --files johndoe