TestOut Linux Pro 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

Which command will give write permission to the hr group for all files in the /hr directory?

chmod g+w /hr/*

The command that gives write permission to the hr group for all files in the /hr directory is the one that uses the `chmod` utility with the `g+w` option. This command modifies the permissions of files by adding write permissions (`w`) specifically for the group (`g`) associated with those files.

The syntax `/hr/*` indicates that the command will apply to all files within the /hr directory. By using `chmod g+w`, it effectively updates the permission settings to include write access for the group's users, enabling them to make changes to the files within that directory.

This is particularly useful in a collaborative environment where a specific group needs to modify shared files. The other options do not achieve this same outcome: some involve changing ownership or listing file permissions without modifying them. This makes the first choice the most appropriate for granting the required permission.

Get further explanation with Examzify DeepDiveBeta

chmod 660 /hr/*

chgrp hr /hr/*

ls -la /hr

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy