PrepAway - Latest Free Exam Questions & Answers

Which of the following commands should you use to accomplish the task?

You work as the Network Administrator for McNeil Inc. The company has a Linux-based network.
You are working a root user on the Red Hat operating system. You want to search for files named
snow.html, Snow.html, SNOW.html in the current directory. Which of the following commands
should you use to accomplish the task?

PrepAway - Latest Free Exam Questions & Answers

A.
find -iname snow.html

B.
find -name snow.html

C.
find name snow.html

D.
find -i snow.html

Explanation:

If no path is given, find looks in the current directory and its subdirectories. Using the -i option tells
the find command to perform caseinsensitive search for files named snow.html. It will show all files
named snow.html, Snow.html,
SNOW.html in the current directory.
Answer option B is incorrect. This command will only search for files named snow.html in the
current directory with case-sensitiveness. It will not search for those files named Snow.html,
SNOW.html.
Answer option C is incorrect. This is an incorrect command; it will show an error message.
Answer option D is incorrect. This is also an incorrect command, there should be a name after -i in
the command.


Leave a Reply