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…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...