How to find files in linux


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


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


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


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.