Question 170
An operations engineer is reviewing ownership of /srv/team04/file04.txt. The requirement is to change both file owner and owning group, using account lina and group audit where relevant. Which command meets it?
- chgrp audit /srv/team04/file04.txt
- chown lina:audit /srv/team04/file04.txt
- stat -c "%U:%G" /srv/team04/file04.txt
- chown lina /srv/team04/file04.txt
Explanation
Correct Answer
B:chown user:group updates both ownership fields for the named file. This matches the stated requirement to change both file owner and owning group, using account lina and group audit where relevant. By contrast, the plausible alternative `chown lina /srv/team04/file04.txt` has the effect: chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account lina and group audit where relevant. Instead, `chown lina:audit /srv/team04/file04.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
C:stat with %U and %G prints the owner and group names but makes no changes. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account lina and group audit where relevant. Instead, `chown lina:audit /srv/team04/file04.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
D:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account lina and group audit where relevant. Instead, `chown lina:audit /srv/team04/file04.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
Question 171
An operations engineer is reviewing ownership of /srv/team05/file05.txt. The requirement is to change both file owner and owning group, using account mara and group qa where relevant. Which command meets it?
- chgrp qa /srv/team05/file05.txt
- stat -c "%U:%G" /srv/team05/file05.txt
- chown mara:qa /srv/team05/file05.txt
- chown mara /srv/team05/file05.txt
Explanation
Correct Answer
C:chown user:group updates both ownership fields for the named file. This matches the stated requirement to change both file owner and owning group, using account mara and group qa where relevant. By contrast, the plausible alternative `chgrp qa /srv/team05/file05.txt` has the effect: chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account mara and group qa where relevant. Instead, `chown mara:qa /srv/team05/file05.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
B:stat with %U and %G prints the owner and group names but makes no changes. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account mara and group qa where relevant. Instead, `chown mara:qa /srv/team05/file05.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
D:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account mara and group qa where relevant. Instead, `chown mara:qa /srv/team05/file05.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
Question 172
During a RHEL 10 maintenance window is reviewing ownership of /srv/team06/file06.txt. The requirement is to display current owner and group, using account devops and group design where relevant. Which command meets it?
- chown devops:design /srv/team06/file06.txt
- chgrp design /srv/team06/file06.txt
- chown devops /srv/team06/file06.txt
- stat -c "%U:%G" /srv/team06/file06.txt
Explanation
Correct Answer
D:stat with %U and %G prints the owner and group names but makes no changes. This matches the stated requirement to display current owner and group, using account devops and group design where relevant. By contrast, the plausible alternative `chown devops:design /srv/team06/file06.txt` has the effect: chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to display current owner and group, using account devops and group design where relevant. Instead, `stat -c "%U:%G" /srv/team06/file06.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
B:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to display current owner and group, using account devops and group design where relevant. Instead, `stat -c "%U:%G" /srv/team06/file06.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
C:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to display current owner and group, using account devops and group design where relevant. Instead, `stat -c "%U:%G" /srv/team06/file06.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
Question 173
An operations engineer is reviewing ownership of /srv/team07/file07.txt. The requirement is to change only owning group, using account deploy and group research where relevant. Which command meets it?
- chgrp research /srv/team07/file07.txt
- chown deploy:research /srv/team07/file07.txt
- stat -c "%U:%G" /srv/team07/file07.txt
- chown deploy /srv/team07/file07.txt
Explanation
Correct Answer
A:chgrp updates the owning group without changing the file owner account. This matches the stated requirement to change only owning group, using account deploy and group research where relevant. By contrast, the plausible alternative `chown deploy:research /srv/team07/file07.txt` has the effect: chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
B:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to change only owning group, using account deploy and group research where relevant. Instead, `chgrp research /srv/team07/file07.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
C:stat with %U and %G prints the owner and group names but makes no changes. This changes or displays a different ownership field. The stated task is to change only owning group, using account deploy and group research where relevant. Instead, `chgrp research /srv/team07/file07.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
D:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to change only owning group, using account deploy and group research where relevant. Instead, `chgrp research /srv/team07/file07.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
Question 174
A RHEL 10 administrator is reviewing ownership of /srv/team08/file08.txt. The requirement is to display current owner and group, using account archive and group audit where relevant. Which command meets it?
- chown archive:audit /srv/team08/file08.txt
- stat -c "%U:%G" /srv/team08/file08.txt
- chgrp audit /srv/team08/file08.txt
- chown archive /srv/team08/file08.txt
Explanation
Correct Answer
B:stat with %U and %G prints the owner and group names but makes no changes. This matches the stated requirement to display current owner and group, using account archive and group audit where relevant. By contrast, the plausible alternative `chgrp audit /srv/team08/file08.txt` has the effect: chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group audit where relevant. Instead, `stat -c "%U:%G" /srv/team08/file08.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
C:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group audit where relevant. Instead, `stat -c "%U:%G" /srv/team08/file08.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
D:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group audit where relevant. Instead, `stat -c "%U:%G" /srv/team08/file08.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
Question 175
A RHEL 10 administrator is reviewing ownership of /srv/team09/file09.txt. The requirement is to display current owner and group, using account archive and group ops where relevant. Which command meets it?
- chown archive:ops /srv/team09/file09.txt
- chgrp ops /srv/team09/file09.txt
- stat -c "%U:%G" /srv/team09/file09.txt
- chown archive /srv/team09/file09.txt
Explanation
Correct Answer
C:stat with %U and %G prints the owner and group names but makes no changes. This matches the stated requirement to display current owner and group, using account archive and group ops where relevant. By contrast, the plausible alternative `chgrp ops /srv/team09/file09.txt` has the effect: chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group ops where relevant. Instead, `stat -c "%U:%G" /srv/team09/file09.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
B:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group ops where relevant. Instead, `stat -c "%U:%G" /srv/team09/file09.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
D:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group ops where relevant. Instead, `stat -c "%U:%G" /srv/team09/file09.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
Question 176
On a RHEL 10 host is reviewing ownership of /srv/team10/file10.txt. The requirement is to display current owner and group, using account archive and group design where relevant. Which command meets it?
- chown archive:design /srv/team10/file10.txt
- chgrp design /srv/team10/file10.txt
- chown archive /srv/team10/file10.txt
- stat -c "%U:%G" /srv/team10/file10.txt
Explanation
Correct Answer
D:stat with %U and %G prints the owner and group names but makes no changes. This matches the stated requirement to display current owner and group, using account archive and group design where relevant. By contrast, the plausible alternative `chgrp design /srv/team10/file10.txt` has the effect: chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group design where relevant. Instead, `stat -c "%U:%G" /srv/team10/file10.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
B:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group design where relevant. Instead, `stat -c "%U:%G" /srv/team10/file10.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
C:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group design where relevant. Instead, `stat -c "%U:%G" /srv/team10/file10.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
Question 177
During a RHEL 10 maintenance window is reviewing ownership of /srv/team11/file11.txt. The requirement is to change only owning group, using account auditor and group design where relevant. Which command meets it?
- chgrp design /srv/team11/file11.txt
- chown auditor:design /srv/team11/file11.txt
- stat -c "%U:%G" /srv/team11/file11.txt
- chown auditor /srv/team11/file11.txt
Explanation
Correct Answer
A:chgrp updates the owning group without changing the file owner account. This matches the stated requirement to change only owning group, using account auditor and group design where relevant. By contrast, the plausible alternative `chown auditor /srv/team11/file11.txt` has the effect: chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
B:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to change only owning group, using account auditor and group design where relevant. Instead, `chgrp design /srv/team11/file11.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
C:stat with %U and %G prints the owner and group names but makes no changes. This changes or displays a different ownership field. The stated task is to change only owning group, using account auditor and group design where relevant. Instead, `chgrp design /srv/team11/file11.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
D:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to change only owning group, using account auditor and group design where relevant. Instead, `chgrp design /srv/team11/file11.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
Question 178
An operations engineer is reviewing ownership of /srv/team12/file12.txt. The requirement is to change only file owner, using account deploy and group ops where relevant. Which command meets it?
- chown deploy:ops /srv/team12/file12.txt
- chown deploy /srv/team12/file12.txt
- chgrp ops /srv/team12/file12.txt
- stat -c "%U:%G" /srv/team12/file12.txt
Explanation
Correct Answer
B:chown with a username alone changes owner, not the owning group. This matches the stated requirement to change only file owner, using account deploy and group ops where relevant. By contrast, the plausible alternative `stat -c "%U:%G" /srv/team12/file12.txt` has the effect: stat with %U and %G prints the owner and group names but makes no changes. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to change only file owner, using account deploy and group ops where relevant. Instead, `chown deploy /srv/team12/file12.txt` is the relevant alternative because chown with a username alone changes owner, not the owning group.
C:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to change only file owner, using account deploy and group ops where relevant. Instead, `chown deploy /srv/team12/file12.txt` is the relevant alternative because chown with a username alone changes owner, not the owning group.
D:stat with %U and %G prints the owner and group names but makes no changes. This changes or displays a different ownership field. The stated task is to change only file owner, using account deploy and group ops where relevant. Instead, `chown deploy /srv/team12/file12.txt` is the relevant alternative because chown with a username alone changes owner, not the owning group.
Question 179
An operations engineer is reviewing ownership of /srv/team13/file13.txt. The requirement is to display current owner and group, using account archive and group design where relevant. Which command meets it?
- chown archive:design /srv/team13/file13.txt
- chgrp design /srv/team13/file13.txt
- stat -c "%U:%G" /srv/team13/file13.txt
- chown archive /srv/team13/file13.txt
Explanation
Correct Answer
C:stat with %U and %G prints the owner and group names but makes no changes. This matches the stated requirement to display current owner and group, using account archive and group design where relevant. By contrast, the plausible alternative `chown archive /srv/team13/file13.txt` has the effect: chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chown user:group updates both ownership fields for the named file. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group design where relevant. Instead, `stat -c "%U:%G" /srv/team13/file13.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
B:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group design where relevant. Instead, `stat -c "%U:%G" /srv/team13/file13.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
D:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to display current owner and group, using account archive and group design where relevant. Instead, `stat -c "%U:%G" /srv/team13/file13.txt` is the relevant alternative because stat with %U and %G prints the owner and group names but makes no changes.
Question 180
A RHEL 10 administrator is reviewing ownership of /srv/team14/file14.txt. The requirement is to change both file owner and owning group, using account auditor and group qa where relevant. Which command meets it?
- chgrp qa /srv/team14/file14.txt
- stat -c "%U:%G" /srv/team14/file14.txt
- chown auditor /srv/team14/file14.txt
- chown auditor:qa /srv/team14/file14.txt
Explanation
Correct Answer
D:chown user:group updates both ownership fields for the named file. This matches the stated requirement to change both file owner and owning group, using account auditor and group qa where relevant. By contrast, the plausible alternative `chgrp qa /srv/team14/file14.txt` has the effect: chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field; that operation would not achieve the requested result.
Incorrect Answers
A:chgrp updates the owning group without changing the file owner account. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account auditor and group qa where relevant. Instead, `chown auditor:qa /srv/team14/file14.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
B:stat with %U and %G prints the owner and group names but makes no changes. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account auditor and group qa where relevant. Instead, `chown auditor:qa /srv/team14/file14.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
C:chown with a username alone changes owner, not the owning group. This changes or displays a different ownership field. The stated task is to change both file owner and owning group, using account auditor and group qa where relevant. Instead, `chown auditor:qa /srv/team14/file14.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests