VDS Sphera Knowledge Base

Main / Browse Categories / Unix / Linux / How can I find a particular file using the UNIX find command?

Print article Print Article    Email article Email Article

How can I find a particular file using the UNIX find command?
find [PATH] -name "[FILENAME]"
Replace [PATH] with the path to search in and replace [FILENAME] with the name of the file you are looking for.

You can run this command for addtional help:

find --help
Here are the help results from: find --help
Usage: find [path...] [expression]
default path is the current directory; default expression is -print
expression may consist of:
operators (decreasing precedence; -and is implicit where no others are given):
      ( EXPR ) ! EXPR -not EXPR EXPR1 -a EXPR2 EXPR1 -and EXPR2
 
      EXPR1 -o EXPR2 EXPR1 -or EXPR2 EXPR1 , EXPR2
options (always true): -daystart -depth -follow --help
      -maxdepth LEVELS -mindepth LEVELS -mount -noleaf --version -xdev
tests (N can be +N or -N or N): -amin N -anewer FILE -atime N -cmin N
 
      -cnewer FILE -ctime N -empty -false -fstype TYPE -gid N -group NAME
      -ilname PATTERN -iname PATTERN -inum N -ipath PATTERN -iregex PATTERN
      -links N -lname PATTERN -mmin N -mtime N -name PATTERN -newer FILE
 
      -nouser -nogroup -path PATTERN -perm [+-]MODE -regex PATTERN
      -size N[bckw] -true -type [bcdpfls] -uid N -used N -user NAME
      -xtype [bcdpfls]
 
actions: -exec COMMAND ; -fprint FILE -fprint0 FILE -fprintf FILE FORMAT
      -ok COMMAND ; -print -print0 -printf FORMAT -prune -ls
 
 
Report bugs to .
Here are a few simple tutorials:
http://www.hccfl.edu/pollock/Unix/FindCmd.htm
http://www.devdaily.com/unix/edu/examples/find.shtml
http://helpdesk.ua.edu/unix/tipsheet/tipv1n10.html

User Comments
How can I find a particular file using the UNIX find command?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 How do I create a symbolic link?
 I need to get "xyz" package installed for our program to work and am having issues compiling it.
 How can I change permissions on my files?
 I noticed "file quota" statistics in my Control Panel. Can you explain what this means as I was not aware there were any limitations on the amount of files that could be placed im my VDS?
 Security Scan Vulnerability False Positives

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »