Written by James McDonald

January 23, 2014

I wanted to find some files that I downloaded in the last 5 days:

Basically the below command says find all files in the current directory and below with a changed time (-ctime) of less than 5 days from now.

[rupert@qad_server dtlive]$ find . -ctime -10
.
./TMP6934.02
./TMP7226.01
./cim40113.prn
./cim50113.prn
./.sh_history
./pitcmt1.txt
./error-init.log
./abin
./archive
./TMP6934.01
./TMP7226.02

And now every less than 10 days old.

[rupert@qad_server dtlive]$ find . -ctime -10
.
./TMP6934.02
./TMP7226.01
./cim40113.prn
./cim50113.prn
./.sh_history
./pitcmt1.txt
./error-init.log
./abin
./archive
./TMP6934.01
./TMP7226.02

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

VEEAM FAILS

If you have Veeam backup failing with the Updating BCD failed with Cannot update SafeBoot flag and SentinelOne is...