PrepAway - Latest Free Exam Questions & Answers

What is the result of this command?

The user user1 is to be removed from your system. You use the command userdel r user1.
What is the result of this command?

PrepAway - Latest Free Exam Questions & Answers

A.
The specified users account is locked.

B.
The specified users account and home directory are deleted.

C.
The specified users account, home directory, and files are deleted.

D.
The specified users account is locked and a list of all files owned by the user is placed in /var/tmp.

Explanation:

The r flag removes home directories for the user to be deleted. Without the -r flag then just the user entry within the /etc/password and /etc/shadow files is deleted but the home directory remains.


Leave a Reply