A collection of "find" command examples for Unix/Linux
<<<<<<<The find command is used to locate files on a Unix or Linux system.It can search the entire filesystem to find files and directories according to the search criteria you specify. Besides using the find command to locate files, you can also execute other Linux commands (grep, mv, rm, etc.) on the files and directories you find, which makes find extremely powerful.>>>>>>> 1. find / -name xyz This will search the whole system for any files named xyz and display their path names.Here we are using the criterion -name w ith the argument xyz to tell find to perform a name search for the file name xyz . 2. find /tmp /var/tmp . $HOME -name xyz You can specify as many places to search as you wish. 3. find / -type f -mtime -7 | xargs tar -rf weekly_incremental.tar ...