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 Perfect Solutions Inc. The company has a Linux-based
network. You are a root user on the Red Hat operating system. You want to view all files with a
size of over 50 megabytes on your system. Which of the following commands should you use to
accomplish the task?

PrepAway - Latest Free Exam Questions & Answers

A.
find -size +50M

B.
find -size -50M

C.
find -size 50M

D.
find size +50M

Explanation:

This command will search for files with a size of over 50 megabytes. The -size option tells find to
search files according to the size of files, and
+50M will tell the find command to search files over 50 megabytes.
Answer option C is incorrect. This command will search for files with a size of exactly 50
megabytes.
Answer option B is incorrect. This command will search for files with a size of less than 50
megabytes.
Answer option D is incorrect. – must be prefixed with size, otherwise shell will not recognize this
command, and display an error message.


Leave a Reply