I'm trying to find a file called mynet1, and I cant located it in my src folder and want to search all the possible files in my system for it. What is a Ubuntu command to find a file given its filename that could be anywhere in my /root and beyond?
Asked
Active
Viewed 7,743 times
0
Mofi
- 42,677
- 15
- 72
- 128
ComputerGuy123
- 177
- 2
- 4
- 11
-
Does this answer your question? [How can I recursively find all files in current and subfolders based on wildcard matching?](https://stackoverflow.com/questions/5905054/how-can-i-recursively-find-all-files-in-current-and-subfolders-based-on-wildcard) – Josh Correia Oct 20 '20 at 20:45
2 Answers
5
To find a file by name, type:
find <path> -name "<query>"
You can learn a lot here: https://www.digitalocean.com/community/tutorials/how-to-use-find-and-locate-to-search-for-files-on-a-linux-vps#finding-by-name
0
Note that Midnight Commander (mc) can search for file names (and text), run it from the command prompt, navigate to the top directory of interest and press F9 C F.
To install:
sudo aptitude install mc
18446744073709551615
- 15,352
- 3
- 89
- 124