TestOut Linux Pro Practice Test

Question: 1 / 400

Which command is used to revert the group ownership of the /hr/personnel file back to mgmt1?

chgrp mgmt1 /hr/personnel

The command used to revert the group ownership of a file is specifically designed to change the group associated with that file. In this case, the correct command is to use `chgrp`, which stands for "change group." When you type `chgrp mgmt1 /hr/personnel`, you are explicitly telling the system to change the group ownership of the file located at `/hr/personnel` to `mgmt1`.

This command directly addresses the requirement of changing the group ownership, and it is the standard and appropriate method for this task. Other commands listed do not fulfill the requirement for group ownership changes. For example, using `chown` would change the user ownership rather than the group, `chmod` is used for modifying file permissions, and `mv` is meant for moving or renaming files. Therefore, only `chgrp` effectively achieves the goal of reverting the group ownership to `mgmt1`.

Get further explanation with Examzify DeepDiveBeta

chown mgmt1 /hr/personnel

chmod mgmt1 /hr/personnel

mv /hr/personnel /hr/personnel_backup

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy