Question 130
A system administrator must search below /srv/server19 using case-insensitive file name as the condition. Which command implements that condition directly?
Explanation
Correct Answer
The -iname predicate matches file names with the pattern *.txt regardless of letter case. It matches the specified search condition at /srv/server19.
Incorrect Answers
The -name predicate matches the literal case in the glob *.txt, not alternate uppercase spellings. The stated need is case-insensitive file name. The stated task is to search below /srv/server19 using case-insensitive file name as the condition. Instead, `find /srv/server19 -iname "*.txt"` is the relevant alternative because the -iname predicate matches file names with the pattern *.txt regardless of letter case. It matches the specified search condition at /srv/server19.
The -type f predicate selects regular files; it does not filter by the extension of their names. The stated need is case-insensitive file name. The stated task is to search below /srv/server19 using case-insensitive file name as the condition. Instead, `find /srv/server19 -iname "*.txt"` is the relevant alternative because the -iname predicate matches file names with the pattern *.txt regardless of letter case. It matches the specified search condition at /srv/server19.
The -type d predicate selects directories, not matching files in the directory tree. The stated need is case-insensitive file name. The stated task is to search below /srv/server19 using case-insensitive file name as the condition. Instead, `find /srv/server19 -iname "*.txt"` is the relevant alternative because the -iname predicate matches file names with the pattern *.txt regardless of letter case. It matches the specified search condition at /srv/server19.






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