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`
Sample Output
-rw-r--r--  1 louie louie 9.9K Mar 22 11:48 ./.xsession-errors
-rw-r--r--  1 louie louie 1.3M Mar 22 11:50 ./.config/google-chrome/Default/Cookies
-rw-r--r--  1 louie louie  16K Mar 22 11:50 ./.config/google-chrome/Default/Cookies-journal
-rw-------  1 louie louie 6.3M Mar 22 11:50 ./.config/google-musicmanager/ServerDatabase.db
-rw-r--r--  1 louie louie 357K Mar 22 11:50 ./.config/google-musicmanager/google-musicmanager.log
-rw-------  1 louie louie 5.0K Mar 22 11:50 ./.config/google-musicmanager/Peer.db
drwx------  2 louie louie 4.0K Mar 22 11:50 ./.config/google-musicmanager/
-rw-------  1 louie louie  19M Mar 22 11:50 ./.cache/google-chrome/Default/Cache/data_2
-rw-------  1 louie louie  11K Mar 22 11:50 ./.config/google-chrome/Default/TransportSecurity
drwx------ 20 louie louie 4.0K Mar 22 11:50 ./.config/google-chrome/Default/
drwx------  7 louie louie 4.0K Mar 22 11:50 ./.config/google-chrome/
-rw-------  1 louie louie 9.1M Mar 22 11:50 ./.cache/google-chrome/Default/Cache/data_4
-rw-------  1 louie louie 513K Mar 22 11:50 ./.cache/google-chrome/Default/Cache/index
-rw-------  1 louie louie 165M Mar 22 11:50 ./.cache/google-chrome/Default/Cache/data_3
-rw-------  1 louie louie  16M Mar 22 11:50 ./.cache/google-chrome/Default/Cache/data_1
-rw-------  1 louie louie 1.5M Mar 22 11:50 ./.cache/google-chrome/Default/Cache/data_0

-2
2014-03-22 16:52:20
ls

1 Alternatives + Submit Alt

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: