armando
armando

Reputation: 1480

how to find unmodified files linux

I can find the files in a directory which changed the last 4 minutes with the command:

find ~ -type f -mmin -4

how could I find the files which have not changed the last X minutes?

thanks.

Upvotes: 2

Views: 425

Answers (2)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798744

With !, which may need escaping in your shell.

find ~ -type f \! -mmin -4

Upvotes: 7

sehe
sehe

Reputation: 393134

find ~ -type f -mmin +4

sweet, not?

Upvotes: 10

Related Questions