Question 160
On a RHEL 10 file tree, an administrator must show the symlink target path for /srv/shared109/report109.txt and /srv/links/report109.txt. A review considers `ln /srv/shared109/report109.txt /srv/links/report109.txt` as an alternative. Its relevant behavior is: ln without -s gives a second directory entry for the same file inode on a compatible file system. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- ln /srv/shared109/report109.txt /srv/links/report109.txt
- ln -s /srv/shared109/report109.txt /srv/links/report109.txt
- ls -i /srv/shared109/report109.txt /srv/links/report109.txt
- readlink /srv/links/report109.txt
Explanation
Correct Answer
D:readlink prints the pathname stored in a symbolic link rather than the original file contents. This matches the stated requirement to show the symlink target path for /srv/shared109/report109. By contrast, the plausible alternative `ls -i /srv/shared109/report109.txt /srv/links/report109.txt` has the effect: ls -i prints inode numbers; it does not create a new link or show a symlink target directly; that operation would not achieve the requested result.
Incorrect Answers
A:ln without -s gives a second directory entry for the same file inode on a compatible file system. The stated task is to show the symlink target path for /srv/shared109/report109. Instead, `readlink /srv/links/report109.txt` is the relevant alternative because readlink prints the pathname stored in a symbolic link rather than the original file contents.
B:ln -s creates a separate symbolic-link inode whose payload is the target pathname. The stated task is to show the symlink target path for /srv/shared109/report109. Instead, `readlink /srv/links/report109.txt` is the relevant alternative because readlink prints the pathname stored in a symbolic link rather than the original file contents.
C:ls -i prints inode numbers; it does not create a new link or show a symlink target directly. The stated task is to show the symlink target path for /srv/shared109/report109. Instead, `readlink /srv/links/report109.txt` is the relevant alternative because readlink prints the pathname stored in a symbolic link rather than the original file contents.
Question 161
On a RHEL 10 file tree, an administrator must inspect inode numbers of both files for /srv/shared110/report110.txt and /srv/links/report110.txt. A review considers `ln /srv/shared110/report110.txt /srv/links/report110.txt` as an alternative. Its relevant behavior is: ln without -s gives a second directory entry for the same file inode on a compatible file system. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- ls -i /srv/shared110/report110.txt /srv/links/report110.txt
- ln /srv/shared110/report110.txt /srv/links/report110.txt
- ln -s /srv/shared110/report110.txt /srv/links/report110.txt
- readlink /srv/links/report110.txt
Explanation
Correct Answer
A:ls -i prints inode numbers; it does not create a new link or show a symlink target directly. This matches the stated requirement to inspect inode numbers of both files for /srv/shared110/report110. By contrast, the plausible alternative `readlink /srv/links/report110.txt` has the effect: readlink prints the pathname stored in a symbolic link rather than the original file contents; that operation would not achieve the requested result.
Incorrect Answers
B:ln without -s gives a second directory entry for the same file inode on a compatible file system. The stated task is to inspect inode numbers of both files for /srv/shared110/report110. Instead, `ls -i /srv/shared110/report110.txt /srv/links/report110.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
C:ln -s creates a separate symbolic-link inode whose payload is the target pathname. The stated task is to inspect inode numbers of both files for /srv/shared110/report110. Instead, `ls -i /srv/shared110/report110.txt /srv/links/report110.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
D:readlink prints the pathname stored in a symbolic link rather than the original file contents. The stated task is to inspect inode numbers of both files for /srv/shared110/report110. Instead, `ls -i /srv/shared110/report110.txt /srv/links/report110.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
Question 162
On a RHEL 10 file tree, an administrator must inspect inode numbers of both files for /srv/shared111/report111.txt and /srv/links/report111.txt. A review considers `ln -s /srv/shared111/report111.txt /srv/links/report111.txt` as an alternative. Its relevant behavior is: ln -s creates a separate symbolic-link inode whose payload is the target pathname. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- ln /srv/shared111/report111.txt /srv/links/report111.txt
- ls -i /srv/shared111/report111.txt /srv/links/report111.txt
- ln -s /srv/shared111/report111.txt /srv/links/report111.txt
- readlink /srv/links/report111.txt
Explanation
Correct Answer
B:ls -i prints inode numbers; it does not create a new link or show a symlink target directly. This matches the stated requirement to inspect inode numbers of both files for /srv/shared111/report111. By contrast, the plausible alternative `ln /srv/shared111/report111.txt /srv/links/report111.txt` has the effect: ln without -s gives a second directory entry for the same file inode on a compatible file system; that operation would not achieve the requested result.
Incorrect Answers
A:ln without -s gives a second directory entry for the same file inode on a compatible file system. The stated task is to inspect inode numbers of both files for /srv/shared111/report111. Instead, `ls -i /srv/shared111/report111.txt /srv/links/report111.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
C:ln -s creates a separate symbolic-link inode whose payload is the target pathname. The stated task is to inspect inode numbers of both files for /srv/shared111/report111. Instead, `ls -i /srv/shared111/report111.txt /srv/links/report111.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
D:readlink prints the pathname stored in a symbolic link rather than the original file contents. The stated task is to inspect inode numbers of both files for /srv/shared111/report111. Instead, `ls -i /srv/shared111/report111.txt /srv/links/report111.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
Question 163
On a RHEL 10 file tree, an administrator must show the symlink target path for /srv/shared112/report112.txt and /srv/links/report112.txt. A review considers `ln -s /srv/shared112/report112.txt /srv/links/report112.txt` as an alternative. Its relevant behavior is: ln -s creates a separate symbolic-link inode whose payload is the target pathname. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- ln /srv/shared112/report112.txt /srv/links/report112.txt
- ln -s /srv/shared112/report112.txt /srv/links/report112.txt
- readlink /srv/links/report112.txt
- ls -i /srv/shared112/report112.txt /srv/links/report112.txt
Explanation
Correct Answer
C:readlink prints the pathname stored in a symbolic link rather than the original file contents. This matches the stated requirement to show the symlink target path for /srv/shared112/report112. By contrast, the plausible alternative `ln /srv/shared112/report112.txt /srv/links/report112.txt` has the effect: ln without -s gives a second directory entry for the same file inode on a compatible file system; that operation would not achieve the requested result.
Incorrect Answers
A:ln without -s gives a second directory entry for the same file inode on a compatible file system. The stated task is to show the symlink target path for /srv/shared112/report112. Instead, `readlink /srv/links/report112.txt` is the relevant alternative because readlink prints the pathname stored in a symbolic link rather than the original file contents.
B:ln -s creates a separate symbolic-link inode whose payload is the target pathname. The stated task is to show the symlink target path for /srv/shared112/report112. Instead, `readlink /srv/links/report112.txt` is the relevant alternative because readlink prints the pathname stored in a symbolic link rather than the original file contents.
D:ls -i prints inode numbers; it does not create a new link or show a symlink target directly. The stated task is to show the symlink target path for /srv/shared112/report112. Instead, `readlink /srv/links/report112.txt` is the relevant alternative because readlink prints the pathname stored in a symbolic link rather than the original file contents.
Question 164
On a RHEL 10 file tree, an administrator must create a hard link to the existing inode for /srv/shared113/report113.txt and /srv/links/report113.txt. A review considers `ln -s /srv/shared113/report113.txt /srv/links/report113.txt` as an alternative. Its relevant behavior is: ln -s creates a separate symbolic-link inode whose payload is the target pathname. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- ln -s /srv/shared113/report113.txt /srv/links/report113.txt
- ls -i /srv/shared113/report113.txt /srv/links/report113.txt
- readlink /srv/links/report113.txt
- ln /srv/shared113/report113.txt /srv/links/report113.txt
Explanation
Correct Answer
D:ln without -s gives a second directory entry for the same file inode on a compatible file system. This matches the stated requirement to create a hard link to the existing inode for /srv/shared113/report113. By contrast, the plausible alternative `ln -s /srv/shared113/report113.txt /srv/links/report113.txt` has the effect: ln -s creates a separate symbolic-link inode whose payload is the target pathname; that operation would not achieve the requested result.
Incorrect Answers
A:ln -s creates a separate symbolic-link inode whose payload is the target pathname. The stated task is to create a hard link to the existing inode for /srv/shared113/report113. Instead, `ln /srv/shared113/report113.txt /srv/links/report113.txt` is the relevant alternative because ln without -s gives a second directory entry for the same file inode on a compatible file system.
B:ls -i prints inode numbers; it does not create a new link or show a symlink target directly. The stated task is to create a hard link to the existing inode for /srv/shared113/report113. Instead, `ln /srv/shared113/report113.txt /srv/links/report113.txt` is the relevant alternative because ln without -s gives a second directory entry for the same file inode on a compatible file system.
C:readlink prints the pathname stored in a symbolic link rather than the original file contents. The stated task is to create a hard link to the existing inode for /srv/shared113/report113. Instead, `ln /srv/shared113/report113.txt /srv/links/report113.txt` is the relevant alternative because ln without -s gives a second directory entry for the same file inode on a compatible file system.
Question 165
On a RHEL 10 file tree, an administrator must create a hard link to the existing inode for /srv/shared114/report114.txt and /srv/links/report114.txt. A review considers `ls -i /srv/shared114/report114.txt /srv/links/report114.txt` as an alternative. Its relevant behavior is: ls -i prints inode numbers; it does not create a new link or show a symlink target directly. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- ln /srv/shared114/report114.txt /srv/links/report114.txt
- ln -s /srv/shared114/report114.txt /srv/links/report114.txt
- ls -i /srv/shared114/report114.txt /srv/links/report114.txt
- readlink /srv/links/report114.txt
Explanation
Correct Answer
A:ln without -s gives a second directory entry for the same file inode on a compatible file system. This matches the stated requirement to create a hard link to the existing inode for /srv/shared114/report114. By contrast, the plausible alternative `ls -i /srv/shared114/report114.txt /srv/links/report114.txt` has the effect: ls -i prints inode numbers; it does not create a new link or show a symlink target directly; that operation would not achieve the requested result.
Incorrect Answers
B:ln -s creates a separate symbolic-link inode whose payload is the target pathname. The stated task is to create a hard link to the existing inode for /srv/shared114/report114. Instead, `ln /srv/shared114/report114.txt /srv/links/report114.txt` is the relevant alternative because ln without -s gives a second directory entry for the same file inode on a compatible file system.
C:ls -i prints inode numbers; it does not create a new link or show a symlink target directly. The stated task is to create a hard link to the existing inode for /srv/shared114/report114. Instead, `ln /srv/shared114/report114.txt /srv/links/report114.txt` is the relevant alternative because ln without -s gives a second directory entry for the same file inode on a compatible file system.
D:readlink prints the pathname stored in a symbolic link rather than the original file contents. The stated task is to create a hard link to the existing inode for /srv/shared114/report114. Instead, `ln /srv/shared114/report114.txt /srv/links/report114.txt` is the relevant alternative because ln without -s gives a second directory entry for the same file inode on a compatible file system.
Question 166
While preparing a RHEL 10 server is reviewing ownership of /srv/team00/file00.txt. The requirement is to change only owning group, using account devops and group research where relevant. Which command meets it?
- chown devops:research /srv/team00/file00.txt
- chgrp research /srv/team00/file00.txt
- stat -c "%U:%G" /srv/team00/file00.txt
- chown devops /srv/team00/file00.txt
Explanation
Correct Answer
B:chgrp updates the owning group without changing the file owner account. This matches the stated requirement to change only owning group, using account devops and group research where relevant. By contrast, the plausible alternative `stat -c "%U:%G" /srv/team00/file00.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 owning group, using account devops and group research where relevant. Instead, `chgrp research /srv/team00/file00.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 devops and group research where relevant. Instead, `chgrp research /srv/team00/file00.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 devops and group research where relevant. Instead, `chgrp research /srv/team00/file00.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
Question 167
On a RHEL 10 host is reviewing ownership of /srv/team01/file01.txt. The requirement is to change both file owner and owning group, using account devops and group research where relevant. Which command meets it?
- chgrp research /srv/team01/file01.txt
- stat -c "%U:%G" /srv/team01/file01.txt
- chown devops:research /srv/team01/file01.txt
- chown devops /srv/team01/file01.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 devops and group research where relevant. By contrast, the plausible alternative `stat -c "%U:%G" /srv/team01/file01.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: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 devops and group research where relevant. Instead, `chown devops:research /srv/team01/file01.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 devops and group research where relevant. Instead, `chown devops:research /srv/team01/file01.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 devops and group research where relevant. Instead, `chown devops:research /srv/team01/file01.txt` is the relevant alternative because chown user:group updates both ownership fields for the named file.
Question 168
A RHEL 10 administrator is reviewing ownership of /srv/team02/file02.txt. The requirement is to change only owning group, using account archive and group ops where relevant. Which command meets it?
- chown archive:ops /srv/team02/file02.txt
- stat -c "%U:%G" /srv/team02/file02.txt
- chown archive /srv/team02/file02.txt
- chgrp ops /srv/team02/file02.txt
Explanation
Correct Answer
D:chgrp updates the owning group without changing the file owner account. This matches the stated requirement to change only owning group, using account archive and group ops where relevant. By contrast, the plausible alternative `chown archive /srv/team02/file02.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 change only owning group, using account archive and group ops where relevant. Instead, `chgrp ops /srv/team02/file02.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
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 only owning group, using account archive and group ops where relevant. Instead, `chgrp ops /srv/team02/file02.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
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 only owning group, using account archive and group ops where relevant. Instead, `chgrp ops /srv/team02/file02.txt` is the relevant alternative because chgrp updates the owning group without changing the file owner account.
Question 169
While preparing a RHEL 10 server is reviewing ownership of /srv/team03/file03.txt. The requirement is to change only file owner, using account mara and group qa where relevant. Which command meets it?
- chown mara /srv/team03/file03.txt
- chown mara:qa /srv/team03/file03.txt
- chgrp qa /srv/team03/file03.txt
- stat -c "%U:%G" /srv/team03/file03.txt
Explanation
Correct Answer
A:chown with a username alone changes owner, not the owning group. This matches the stated requirement to change only file owner, using account mara and group qa where relevant. By contrast, the plausible alternative `stat -c "%U:%G" /srv/team03/file03.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
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 file owner, using account mara and group qa where relevant. Instead, `chown mara /srv/team03/file03.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 mara and group qa where relevant. Instead, `chown mara /srv/team03/file03.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 mara and group qa where relevant. Instead, `chown mara /srv/team03/file03.txt` is the relevant alternative because chown with a username alone changes owner, not the owning group.
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.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests