About Linux FAQ

Browse More FAQs:

How do I search my Linux / UNIX server for a file?

Posted by Vivek Gite [Last updated: May 1, 2008]

Q. How do I search Linux box for a file?

A. You need to use find command, which search for files in a directory hierarchy (file system) and prints information about the files it found. It is run like as follows:

find {dir-name} -name {file-name}

Find command examples

Find out file called foo.txt:
# find / -name foo.txt
Find out httpd.log file:
# find / -type f -name httpd.log

See also:

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Dr.M.Bärmann Says:

    Make it more easy. i did not understan nothing. can you tell people simply things? I still doo not know who you areß what are you dooing? nothing is that what you want? think abaut. Young People may know this, but what abaut the 50-60 generation.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.