Multiple choice technology operating systems

How to search recursively in the directory structure to list the file named file1?

  1. ls -lrt file1

  2. ls -lR file1

  3. find . -s file1

  4. find . -name file1

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The find command is used to search directories recursively. The -name option specifies the filename pattern to search for, making find . -name file1 correct. ls commands list files but do not perform recursive file-matching searches, and find . -s is invalid syntax for this purpose.