Question 780
On shared directory /srv/collab-20, a RHEL 10 operator needs to show numeric permission bits on a directory. A review considers `chmod g+rw /srv/collab-20` as an alternative. Its relevant behavior is: g+rw adds read and write bits for the owning group without affecting other classes. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
Explanation
Correct Answer
stat reports the permission mode in a numeric octal representation. This matches the stated requirement to show numeric permission bits on a directory. By contrast, the plausible alternative `chmod g+rw /srv/collab-20` has the effect: g+rw adds read and write bits for the owning group without affecting other classes; that operation would not achieve the requested result.
Incorrect Answers
The setgid bit causes new files and subdirectories to inherit the directory group where supported. The stated task is to show numeric permission bits on a directory. Instead, `stat -c %a /srv/collab-20` is the relevant alternative because stat reports the permission mode in a numeric octal representation.
A sticky directory limits deletion and renaming to permitted owners or privileged users. The stated task is to show numeric permission bits on a directory. Instead, `stat -c %a /srv/collab-20` is the relevant alternative because stat reports the permission mode in a numeric octal representation.
g+rw adds read and write bits for the owning group without affecting other classes. The stated task is to show numeric permission bits on a directory. Instead, `stat -c %a /srv/collab-20` is the relevant alternative because stat reports the permission mode in a numeric octal representation.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests