Question 150
Before a RHEL 10 maintenance task, the administrator needs to list gzip archive for archive /tmp/reports19.tar.gz using working directory /srv/data19. Which tar invocation matches?
- tar -czf /tmp/reports19.tar.gz -C /srv/data19 .
- tar -tzf /tmp/reports19.tar.gz
- tar -xzf /tmp/reports19.tar.gz -C /srv/data19
- tar -cf /tmp/reports19.tar -C /srv/data19 .
Explanation
Correct Answer
B:The t flag lists archive contents without extracting or modifying them. That performs the requested operation. This matches the stated requirement to list gzip archive for archive /tmp/reports19. By contrast, the plausible alternative `tar -cf /tmp/reports19.tar -C /srv/data19 .` has the effect: Using c without z creates a tar archive but does not produce gzip-compressed output. This is a different archive operation from the requested list gzip archive; that operation would not achieve the requested result.
Incorrect Answers
A:The c flag creates an archive and z applies gzip compression, while f names the archive file. This is a different archive operation from the requested list gzip archive. The stated task is to list gzip archive for archive /tmp/reports19. Instead, `tar -tzf /tmp/reports19.tar.gz` is the relevant alternative because the t flag lists archive contents without extracting or modifying them. That performs the requested operation.
C:The x flag extracts members, z enables gzip handling, and -C selects the target directory. This is a different archive operation from the requested list gzip archive. The stated task is to list gzip archive for archive /tmp/reports19. Instead, `tar -tzf /tmp/reports19.tar.gz` is the relevant alternative because the t flag lists archive contents without extracting or modifying them. That performs the requested operation.
D:Using c without z creates a tar archive but does not produce gzip-compressed output. This is a different archive operation from the requested list gzip archive. The stated task is to list gzip archive for archive /tmp/reports19. Instead, `tar -tzf /tmp/reports19.tar.gz` is the relevant alternative because the t flag lists archive contents without extracting or modifying them. That performs the requested operation.
Question 151
On a RHEL 10 file tree, an administrator must inspect inode numbers of both files for /srv/shared100/report100.txt and /srv/links/report100.txt. Which command is appropriate?
- ln /srv/shared100/report100.txt /srv/links/report100.txt
- ln -s /srv/shared100/report100.txt /srv/links/report100.txt
- ls -i /srv/shared100/report100.txt /srv/links/report100.txt
- readlink /srv/links/report100.txt
Explanation
Correct Answer
C: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/shared100/report100. By contrast, the plausible alternative `readlink /srv/links/report100.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
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/shared100/report100. Instead, `ls -i /srv/shared100/report100.txt /srv/links/report100.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
B: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/shared100/report100. Instead, `ls -i /srv/shared100/report100.txt /srv/links/report100.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/shared100/report100. Instead, `ls -i /srv/shared100/report100.txt /srv/links/report100.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 152
On a RHEL 10 file tree, an administrator must create a symbolic link that stores the path for /srv/shared101/report101.txt and /srv/links/report101.txt. Which command is appropriate?
- ln /srv/shared101/report101.txt /srv/links/report101.txt
- ls -i /srv/shared101/report101.txt /srv/links/report101.txt
- readlink /srv/links/report101.txt
- ln -s /srv/shared101/report101.txt /srv/links/report101.txt
Explanation
Correct Answer
D:ln -s creates a separate symbolic-link inode whose payload is the target pathname. This matches the stated requirement to create a symbolic link that stores the path for /srv/shared101/report101. By contrast, the plausible alternative `readlink /srv/links/report101.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
A:ln without -s gives a second directory entry for the same file inode on a compatible file system. The stated task is to create a symbolic link that stores the path for /srv/shared101/report101. Instead, `ln -s /srv/shared101/report101.txt /srv/links/report101.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
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 symbolic link that stores the path for /srv/shared101/report101. Instead, `ln -s /srv/shared101/report101.txt /srv/links/report101.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
C:readlink prints the pathname stored in a symbolic link rather than the original file contents. The stated task is to create a symbolic link that stores the path for /srv/shared101/report101. Instead, `ln -s /srv/shared101/report101.txt /srv/links/report101.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
Question 153
On a RHEL 10 file tree, an administrator must inspect inode numbers of both files for /srv/shared102/report102.txt and /srv/links/report102.txt. A review considers `ln /srv/shared102/report102.txt /srv/links/report102.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/shared102/report102.txt /srv/links/report102.txt
- ln /srv/shared102/report102.txt /srv/links/report102.txt
- ln -s /srv/shared102/report102.txt /srv/links/report102.txt
- readlink /srv/links/report102.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/shared102/report102. By contrast, the plausible alternative `ln /srv/shared102/report102.txt /srv/links/report102.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
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/shared102/report102. Instead, `ls -i /srv/shared102/report102.txt /srv/links/report102.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/shared102/report102. Instead, `ls -i /srv/shared102/report102.txt /srv/links/report102.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/shared102/report102. Instead, `ls -i /srv/shared102/report102.txt /srv/links/report102.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 154
On a RHEL 10 file tree, an administrator must create a symbolic link that stores the path for /srv/shared103/report103.txt and /srv/links/report103.txt. A review considers `ln /srv/shared103/report103.txt /srv/links/report103.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/shared103/report103.txt /srv/links/report103.txt
- ln -s /srv/shared103/report103.txt /srv/links/report103.txt
- ls -i /srv/shared103/report103.txt /srv/links/report103.txt
- readlink /srv/links/report103.txt
Explanation
Correct Answer
B:ln -s creates a separate symbolic-link inode whose payload is the target pathname. This matches the stated requirement to create a symbolic link that stores the path for /srv/shared103/report103. By contrast, the plausible alternative `ln /srv/shared103/report103.txt /srv/links/report103.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 create a symbolic link that stores the path for /srv/shared103/report103. Instead, `ln -s /srv/shared103/report103.txt /srv/links/report103.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
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 symbolic link that stores the path for /srv/shared103/report103. Instead, `ln -s /srv/shared103/report103.txt /srv/links/report103.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
D:readlink prints the pathname stored in a symbolic link rather than the original file contents. The stated task is to create a symbolic link that stores the path for /srv/shared103/report103. Instead, `ln -s /srv/shared103/report103.txt /srv/links/report103.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
Question 155
On a RHEL 10 file tree, an administrator must inspect inode numbers of both files for /srv/shared104/report104.txt and /srv/links/report104.txt. A review considers `ln -s /srv/shared104/report104.txt /srv/links/report104.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/shared104/report104.txt /srv/links/report104.txt
- ln -s /srv/shared104/report104.txt /srv/links/report104.txt
- ls -i /srv/shared104/report104.txt /srv/links/report104.txt
- readlink /srv/links/report104.txt
Explanation
Correct Answer
C: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/shared104/report104. By contrast, the plausible alternative `ln /srv/shared104/report104.txt /srv/links/report104.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/shared104/report104. Instead, `ls -i /srv/shared104/report104.txt /srv/links/report104.txt` is the relevant alternative because ls -i prints inode numbers; it does not create a new link or show a symlink target directly.
B: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/shared104/report104. Instead, `ls -i /srv/shared104/report104.txt /srv/links/report104.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/shared104/report104. Instead, `ls -i /srv/shared104/report104.txt /srv/links/report104.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 156
On a RHEL 10 file tree, an administrator must create a symbolic link that stores the path for /srv/shared105/report105.txt and /srv/links/report105.txt. A review considers `ls -i /srv/shared105/report105.txt /srv/links/report105.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/shared105/report105.txt /srv/links/report105.txt
- ls -i /srv/shared105/report105.txt /srv/links/report105.txt
- readlink /srv/links/report105.txt
- ln -s /srv/shared105/report105.txt /srv/links/report105.txt
Explanation
Correct Answer
D:ln -s creates a separate symbolic-link inode whose payload is the target pathname. This matches the stated requirement to create a symbolic link that stores the path for /srv/shared105/report105. By contrast, the plausible alternative `ls -i /srv/shared105/report105.txt /srv/links/report105.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 create a symbolic link that stores the path for /srv/shared105/report105. Instead, `ln -s /srv/shared105/report105.txt /srv/links/report105.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
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 symbolic link that stores the path for /srv/shared105/report105. Instead, `ln -s /srv/shared105/report105.txt /srv/links/report105.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
C:readlink prints the pathname stored in a symbolic link rather than the original file contents. The stated task is to create a symbolic link that stores the path for /srv/shared105/report105. Instead, `ln -s /srv/shared105/report105.txt /srv/links/report105.txt` is the relevant alternative because ln -s creates a separate symbolic-link inode whose payload is the target pathname.
Question 157
On a RHEL 10 file tree, an administrator must inspect inode numbers of both files for /srv/shared106/report106.txt and /srv/links/report106.txt. A review considers `readlink /srv/links/report106.txt` as an alternative. Its relevant behavior is: readlink prints the pathname stored in a symbolic link rather than the original file contents. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- ls -i /srv/shared106/report106.txt /srv/links/report106.txt
- ln /srv/shared106/report106.txt /srv/links/report106.txt
- ln -s /srv/shared106/report106.txt /srv/links/report106.txt
- readlink /srv/links/report106.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/shared106/report106. By contrast, the plausible alternative `ln -s /srv/shared106/report106.txt /srv/links/report106.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
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/shared106/report106. Instead, `ls -i /srv/shared106/report106.txt /srv/links/report106.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/shared106/report106. Instead, `ls -i /srv/shared106/report106.txt /srv/links/report106.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/shared106/report106. Instead, `ls -i /srv/shared106/report106.txt /srv/links/report106.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 158
On a RHEL 10 file tree, an administrator must create a hard link to the existing inode for /srv/shared107/report107.txt and /srv/links/report107.txt. Which command is appropriate?
- ln -s /srv/shared107/report107.txt /srv/links/report107.txt
- ln /srv/shared107/report107.txt /srv/links/report107.txt
- ls -i /srv/shared107/report107.txt /srv/links/report107.txt
- readlink /srv/links/report107.txt
Explanation
Correct Answer
B: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/shared107/report107. By contrast, the plausible alternative `ls -i /srv/shared107/report107.txt /srv/links/report107.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 -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/shared107/report107. Instead, `ln /srv/shared107/report107.txt /srv/links/report107.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/shared107/report107. Instead, `ln /srv/shared107/report107.txt /srv/links/report107.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/shared107/report107. Instead, `ln /srv/shared107/report107.txt /srv/links/report107.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 159
On a RHEL 10 file tree, an administrator must show the symlink target path for /srv/shared108/report108.txt and /srv/links/report108.txt. Which command is appropriate?
- ln /srv/shared108/report108.txt /srv/links/report108.txt
- ln -s /srv/shared108/report108.txt /srv/links/report108.txt
- readlink /srv/links/report108.txt
- ls -i /srv/shared108/report108.txt /srv/links/report108.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/shared108/report108. By contrast, the plausible alternative `ls -i /srv/shared108/report108.txt /srv/links/report108.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/shared108/report108. Instead, `readlink /srv/links/report108.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/shared108/report108. Instead, `readlink /srv/links/report108.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/shared108/report108. Instead, `readlink /srv/links/report108.txt` is the relevant alternative because readlink prints the pathname stored in a symbolic link rather than the original file contents.
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.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests