Pages

Saturday, March 22, 2014

Find everything updated in the last minute recursively within the current directory and sort by time, newest at the bottom.

$ ls -lF -darth `find . -mmin -3`

Provides a recursive time ordered list of the current directory over the last 3 minutes.


Excluding zero byte files:


ls -lF -darth `find . -size +0 -mmin -3`

For the last day's files, change "-mmin -3" to "-mtime -1":


ls -lF -darth `find . -size +0 -mtime -1`


commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1ip7OEq.

No comments:

Post a Comment