Web Server Administration: find
find
To find all files on the server that end with .txt:
$ find / -name *.txt -print
The find command is used to find files
The first argument is the directory to start in. To search the entire server, use the root directory ( / )
To find all files in /export/home/ericl that were modified in the past week:
$ find /export/home/ericl -mtime -7 -print
or files modified more than a week ago:
$ find /export/home/ericl -mtime +7 -print