tisdag 29 november 2011

How to print out last accessed files?

Using find command in *nix:


find mydirectory/etc -atime n
Where  n can be one of the following:
+7 = more than 7 days ago
2 = between 2 and 3 days ago
-2 = within the past 2 days
+1 = more than 1 day old
1 = between 1 and 2 days ago
-1 = within the past 1 day
0 = within the past 1 day



Inga kommentarer:

Skicka en kommentar