Find: Difference between revisions

From Hackepedia
Jump to navigationJump to search
Created page with "== To find a file created in the last X days == The following prints a file created/changed in the last day find . -ctime -1 -print Also see ctime. == To find a file acc..."
 
consistency with ctime page
Line 1: Line 1:
== To find a file created in the last X days ==
== To find a file changed in the last X days ==


The following prints a file created/changed in the last day
The following prints a file changed in the last day


  find . -ctime -1 -print
  find . -ctime -1 -print

Revision as of 06:09, 14 August 2010

To find a file changed in the last X days

The following prints a file changed in the last day

find . -ctime -1 -print

Also see ctime.

To find a file accessed 30 days or before

To see files that were accessed last 30 or more days from now you'd do

find . -atime +30 -print

Also see atime