PrepAway - Latest Free Exam Questions & Answers

What would the following line accomplish if run as root?

What would the following line accomplish if run as root?
chown -R bert /home/bert/*

PrepAway - Latest Free Exam Questions & Answers

A.
Nothing, this command is invalid.

B.
It would set the group ownership of the directory/home/bert to bert.

C.
It would change user ownership of all files in /home/bert to bert.

D.
It would set ownership of all files and subdirectories in /home/bert to bert.

E.
It would revoke belt’s ownership from his home directory to root.

Explanation:
-R Recursively change file user and group IDs. For each file operand that names a directory, chown shall change the user ID (and group ID, if specified) of the directory and all files in the file hierarchy below it.
Unless A.H, -L, or – P option is specified, It is unspecified which of these options will be used as the default.


Leave a Reply