find
Linux Commands - Administrative Commands

find

Use this to find a file. Example: find / -atime -5 This command will find all files and directories changed less than 5 days ago. Options -amin min replace min with the following +min more than m minutes ago m exactly m minutes ago -m less than m minutes ago -atime days replace days with the following +d more than d days ago d exactly d days ago -d less than d days ago -name file find a file named file -user user files which are owned by a user

The find command will allow you to search through directories to locate files. The example below shows that the find command is used to search a specific directory, /home/mike for the file named sp.rtf, notice that it is in quotes.


find /home/mike -name "sp.rtf"

/home/mike/sp.rtf