find - search for files in a directory hierarchy
Use this command to search for files and folders on /home/
add a time period of time according to your needs:
find /home/ -ctime time_period
Examples of time_period:
- More than 30 days ago: -ctime +30
- Less than 30 days ago: -ctime -30
- Exactly 30 days ago: -ctime 30
Examples
find / -name top
find / -iname top
find / -name 'top*'
find / -name 'top???'
find / -name 'top?????*'
find ~ -iname '*.tex'
find /usr/share -iname '*.jp*g'
find /usr/share -name '*farm*'
find . -regex '.*\(net\|comm\).*'
find /usr/share -iregex '.*\.\(jpg\|jpeg\)'
find . -regex '.*\(net\|comm\).[^/]*' \! -type d
find ~ -name audio -type d
Find all empty files in your home directory tree
find ~ -empty
Use find to execute a command on each found file
find ~/html/ -name '*.html' -exec grep organic '{}' ';'