Linux is a very complex operating system and provides a lot of usefull tools and commands. Just a few simple linux console commands to find files in Linux OS (regular search or recursive search):

Find files recursively

#print all files in a directory, recursively
find ./ -type f -follow -print

Search for a string and delete all files containg that string, recursively:
grep -lrIZ "searched string" . | xargs -0 rm -f --

Find files recursively, by extension

#print all files, recursively, by extension
find . -type f -name "*.jpg"

Share.

About Author

I am a linux passionate and currently working as a Linux Senior System Administrator. I also am a freelancer and help people to complete different jobs. You can hire me on Freelancer.com

Leave A Reply

Get new posts by email: