Quantcast
Channel: Linux: using find to locate files older than - Server Fault
Viewing all articles
Browse latest Browse all 12

Answer by Ahmed for Linux: using find to locate files older than

$
0
0

i hope this will help you

# find files modified last 2 daysfind <directory> -type f -mtime -2# find files modifies BEFORE last 2 days (add the negative char !)find <directory> -type f ! -mtime -2

You can pipe whith xargs ls -trdlh to list you files

find <directory> -type f ! -mtime -2 | xargs ls -trdlh

Viewing all articles
Browse latest Browse all 12