#Search the file with its name

$ find ./test -name "1.txt"

#to search for specific files from specific directories/sub directories.

$ find /home1/test -type f -exec grep -l 1.html {} \;

wildcards can be used to search for specific pattern

$ find ./test -name "*.html"


we can use "iname" to search for pattern without checking case

$ find ./test -iname "*.html"


How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.