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`
-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
Useful mainly for debugging or troubleshooting an application or system, such as X11, Apache, Bind, DHCP and others. Another useful switch that can be combined with -mmin, -mtime and so forth is -daystart. For example, to find files that were modified in the /etc directory only yesterday:
sudo find /etc -daystart -mtime 1 -type f
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.
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.
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
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: