简体   繁体   中英

Ubuntu command to find file given filename

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?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM