Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
213
rated 0 times [  213] [ 0]  / answers: 1 / hits: 452561  / 3 Years ago, fri, october 8, 2021, 5:49:43

Trying to locate a file, how can I search the entire hard drive for a file?


More From » files

 Answers
5

A simple find / -type f -name "" would do the trick if you know exact filename.



find / -type f -iname "filename*" if you want to match more files (ignore case).



Avoid -type option if you want to search for directories etc. See manual of find for more information. To see the manual, issue the command:



man find


[#41357] Saturday, October 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
calcur

Total Points: 189
Total Questions: 80
Total Answers: 95

Location: Burkina Faso
Member since Thu, Dec 15, 2022
1 Year ago
;