Services and User Management

A contractor's last day was yesterday. On a RHEL server, an administrator must delete the account jsmith and also delete the user's home directory and mail spool in one command. Which command accomplishes this?

Show the answer

Correct answerB. userdel -r jsmith

userdel -r removes the account entries along with the home directory and mail spool. Plain userdel removes only the account entries and leaves the home directory on disk, which is the tempting but incomplete choice.