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

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>