Friday, February 18, 2011

How to find a file by name in UNIX/Solaris/Linux OS

Find a file by name in UNIX/Solaris/Linux

  • To find a file such as filename.txt anywhere on the system:

find / -name filename.txt -print

  • Recent operating system versions do not require the print option because this is the default. To limit the search to a specific directory such as /usr:

find /usr -name filename.txt -print

I hope this helps you to find a file in unix/linux/solaris system. Leave a comment plz :)


lovely_baby19 said...

thanks for the post.
this is helpful :)

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | fantastic sams coupons