How do I search my Linux / UNIX server for a file?
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:
- Search all the Linux man pages for a particular command or text
- Configure Linux / UNIX dns resolver to append domain search names / path ( ndots options )
- Can I set the permissions on a symbolic link under Linux/UNIX?
- Debian / Ubuntu Linux search package names with apt-cache command
- Linux: How can I find a file on my system?
Discussion on This FAQ
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!
Tags: directory hierarchy, find command, linux file search, linux find files, search directory, search file, search files




April 15th, 2008 at 10:35 pm
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.