How to find files in linux


 description

In linux, you can use the find command to quickly find files

In the demo, we look for a file named test.txt under the home path

 command

find /home -type f -name "test.txt"

 parameter

-type : file type, f is regular file
-name : name pattern

 result

/home/test.txt
/home/dirtest/test.txt
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.