Linux find all files younger than

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 *

You May Also Like…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...