CompTIA Linux+ (XK0-005) — Question 186
Based on the given command:
find /home/user1 -type f -name "*.txt" -size +100M
Which of the following will the command accomplish?
Answer options
- A. It finds all the files ending with .txt with a size less than 100MB in /home/user1 directory.
- B. It finds all the files ending with .txt with a size of 100MB in /home/user1 directory.
- C. It finds all the directories with .txt files with a size of 100MB in /home folder.
- D. It finds all the files ending with .txt with a size of over 100MB in /home/user1 directory.
Correct answer: D
Explanation
The correct answer is D because the command specifically searches for files with a .txt extension that exceed 100MB in size. Options A and B incorrectly describe the size condition, and option C misinterprets the command's focus on files rather than directories.