0

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?

Mofi
  • 46,139
  • 17
  • 80
  • 143
ComputerGuy123
  • 217
  • 2
  • 5
  • 12
  • 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 Answers2

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

Styx
  • 9,863
  • 8
  • 43
  • 53
aggrodin
  • 51
  • 1
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
  • 16,368
  • 4
  • 94
  • 127