Find /home -mtime +7 -name core -exec rm -f {} \\;-to search the files or directories, we use the find or locate command where locate command search on its database but faster than find command. find command searches the files/directories in different condition but accurate than locate command. syntax for find command: find path condition action example: find /etc -name passwd : search files or directories in /etc named passwd. similarly you can use other options: -atime : access time -mtime : modified time -ctime : change time -name or -iname : according to file name -type : according to file type action in find command can start from -exec command. example: find /tmp -type f -exec rm {} \\; : which search all normal files and remove it. find /home -mtime +7 -name core -exec rm -f {} \\; : which searches files named core more than 7 days old and removes that file.