How to Use Find Command to Find Files
find is a linux command for recursively filtering objects in the file system based on simple conditions. It's pretty easy to use this command to search files and directories. Find files by name or extensions If you want to find all .html files on /var/www/ directory, just type the following command into the computer find /var/www/ -name "*.html" If you want to delete all the files founded by the previous command, please add -delete option to the end of the previous command. Please carefully use this option when you are certain that the results only match the files that you wish to delete. find /var/www/ -name "*.html" -delete Find files by modification time If you want to find files by modification time, just add -mtime option. Here is the command for you to find all the .php files in /var/www/ directory modified in 3 day. find /var/www -name "*.php" -mtime 3 Find files based on content If you need to search files based on the conte...