Find is a wonderful command that is used in day to day. Some useful commands on find are as follows:
- To search the system for files that were modified within the last three days:
root@server# find / -mtime -3 -print
- List all files named core in the directory /test
root@server# find /test -name core
- To search the current directory and subdirectories for files beginning with name “conf” and prints the path:
root@server# find . -type f -name ‘conf*’ -print
To search in the current directory and all sub directories all files that contain the string “test” and will have their path printed to standard output.
root@server# find . -exec grep -q “test” ‘{}’ \; -print
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now



