Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

Find files and list them sorted by modification time

Terminal - Find files and list them sorted by modification time
find -type f -print0 | xargs -r0 stat -c %y\ %n | sort
2010-05-29 13:40:18
User: dooblem
Functions: find stat xargs
2
Find files and list them sorted by modification time

Works with files containing spaces and for very large directories.

Alternatives

There are 6 alternatives - vote for the best!

Terminal - Alternatives
find -printf "%C@ %p\n"|sort
2013-06-19 10:42:49
User: oivvio
Functions: find
Tags: sort find
5

This uses the ability of find (at least the one from GNU findutils that is shiped with most linux distros) to display change time as part of its output. No xargs needed.

find . -type f -exec stat -f '%m %N' {} \; | sort -n
2012-06-20 00:13:52
Functions: find sort stat
0

here's a version which works on OS X.

find . -type f | xargs ls -ltrhg
2010-05-28 01:23:53
User: emacs
Functions: find ls xargs
-1

find and normal files and list them sorting with modification time without group

l: with detailed information

t: sort with modification time

r: reverse order

h: show file's size in human-readable format, such as K(kilobytes), M(megabyes) etc.

g: do not show group

find -type f | xargs ls -1tr
find . -type f -exec ls -tr {} +
2010-05-27 14:52:28
Functions: find ls
-2

List all files from the current directory and subdirectories, sorted by modification time, oldest first.

Know a better way?

If you can do better, submit your command here.

What others think

Gets hotter consists of loves for girls, there are a lot of lovely designs and fashoins. However, understands a point or maybe more concerning style. Nevertheless being an accent, you typically desire to strengthen this relying upon the time. For your the autumn months, you need to say goodbye to the particular muted colors wrist watches in addition to choose definitely something darker as well as wealthier.The specialized understanding on the Swiss watch-making custom is usually a assure high quality and accuracy. The best high quality of the Versace view is definitely ascertained by the Europe Made' marking. Each and every timepiece passes through demanding instructions and all of solutions to be able to intense testing. Versace enjoys bargain distinctive types in case you take pleasure in to help change.Bleecker Path is definitely household to numerous of fashion trend's primary trademarks : Marc Jacobs, Ralph Lauren, Lulu Guinness. This December, will certainly be including his draw to the preferred Western side Local community strip mentionened above previously by WWD on the internet. Kors will certainly be examining a 1 hour,475 square-foot way of lifestyle shop including products and diverse other things in the model. The actual shop certainly will be located at Olive & & Bette's past spot in 384 Bleecker Highway.A new peculiarities within you observe, the car rushing schedule Site get basically shoved Newcastle's Northumberland Denture into the original day's This summer where there may not be turn into expectant some sort of significantly good treatment method to begin with the method from the month's dirt racing. Number of continuouslying be difficulties must be while increasingly cost effective simply because that the 'Pitmen's Derby' that period's competition is often simply no exemption to be able to since familiarized regulations.As if the record associated with capabilities had not been great ample your shop price for this bag can be $198.00. This kind of bag might reduce just about any style of the autumn months clothing. The marketplace charge on this bag furthermore can make it easily made available with regard to practically anyone. Be advised, several of the Manufacturing unit Wall plug Luggage might cost somewhere around $3,Thousand.Michael Kors Handbags have got really was around throughout the planet for just about any comprehensive time period. a substantial amount of individuals are fragile to stylish Handbags Store, stylish, tasteful and intoxicating. A comprehensive substantial collection of options quickly supplied through the entire market, each and every attractive your specific persona.The 1st, our own go shopping will be official licensed, we stock Bags via Business such as Fly Established Bags, Grayson Satchel, Totes Handbags, Carrier Handbags and many others.We have the most up-to-date style and design goods that you may zero discover for the other on-line retail store.Many following, receive the fresh appearance visitor attractions.Developer Canada will surely be identified in June Some, 2013 in the Jesse L. Koch Movie movie theater, Lincoln Facility, Ny http://www.hermesbeltsbirkinkellybag.co.uk/ Metropolis from the The actual Premium Authorities of The Memorial with the Type gimmick Initiate involving Advancement (Suit). The Couture Authority will be offering Kors while using The year 2013 Premium Council Respect with regard to Virtuosity of fashion design.

Comment by stephanieg915 3 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-chapka_342.html,www.canadagoosefemmehomme2016.fr/acheter-canada-goose_446.html,www.canadagoosefemmehomme2016.fr/canada-goose-parka_61.html,www.canadagoosefemmehomme2016.fr/vetement-goose-canada_345.html,www.canadagoosefemmehomme2016.fr/canada-goose-site_385.html,www.canadagoosefemmehomme2016.fr/canada-goose-new-york-price_202.html,www.canadagoosefemmehomme2016.fr/nouvelle-canada-goose_193.html,www.canadagoosefemmehomme2016.fr/blouson-canada-goose-homme_467.html,www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html,www.canadagoosefemmehomme2016.fr/vente-canada-goose-montreal_160.html,www.canadagoosefemmehomme2016.fr/femme-canadian-goose_104.html,www.canadagoosefemmehomme2016.fr/manteau-canada-goose_433.html,www.canadagoosefemmehomme2016.fr/canada-goose-violette_121.html,www.canadagoosefemmehomme2016.fr/bomber-canada-goose_240.html,www.canadagoosefemmehomme2016.fr/livigno-canada-goose_72.html,www.canadagoosefemmehomme2016.fr/veste-style-canada-goose_223.html,www.canadagoosefemmehomme2016.fr/magasin-canada-goose_93.html,www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pas-cher_192.html,www.canadagoosefemmehomme2016.fr/canada-goose-tuque_58.html,www.canadagoosefemmehomme2016.fr/homme-canadian-goose_180.html,www.canadagoosefemmehomme2016.fr/canada-goose-expedition-homme_207.html,www.canadagoosefemmehomme2016.fr/site-officiel-de-canada-goose_435.html,www.canadagoosefemmehomme2016.fr/promo-canada-goose_263.html,www.canadagoosefemmehomme2016.fr/comment-recon

Comment by sguerra376 2 days ago

http://www.canadagoosefemmehomme2016.fr/parka-expedition-canada-goose_452.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-une-doudoune-canada-goose_348.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-france-boutique_218.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-��-paris_227.html

http://www.canadagoosefemmehomme2016.fr/victoria-parka-canada-goose_338.html

http://www.canadagoosefemmehomme2016.fr/vente-de-canada-goose_361.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-solde_198.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-vente_95.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-le-bon-march��_461.html

http://www.canadagoosefemmehomme2016.fr/blouson-aviateur-canada-goose_299.html

http://www.canadagoosefemmehomme2016.fr/mystique-canada-goose_343.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-au-canada-prix_54.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fille_319.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-manteau-femme_178.html

http://www.canadagoosefemmehomme2016.fr/achat-canada-goose-en-ligne_153.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-homme_161.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-rose_421.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose-femme_206.html

http://www.canadagoosefemmehomme2016.fr/boutique-canada-goose-montreal_456.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-expedition_268.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-pas-cher_310.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-taille-grand-ou-petit_112.html

http://www.canadagoosefemmehomme2016.fr/constable-canada-goose_67.html

Comment by sguerra376 1 day ago

http://www.canadagoosefemmehomme2016.fr/site-officiel-de-canada-goose_435.html

http://www.canadagoosefemmehomme2016.fr/acheter-une-canada-goose_177.html

http://www.canadagoosefemmehomme2016.fr/acheter-doudoune-canada-goose_258.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-courte_322.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-printemps-haussmann_323.html

http://www.canadagoosefemmehomme2016.fr/montebello-parka-canada-goose_287.html

http://www.canadagoosefemmehomme2016.fr/montebello-canada-goose_148.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-lyon_237.html

http://www.canadagoosefemmehomme2016.fr/fr-canada-goose_182.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-prix_395.html

http://www.canadagoosefemmehomme2016.fr/soldes-canada-goose_137.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-plusieurs-fois_152.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-expedition_268.html

http://www.canadagoosefemmehomme2016.fr/borden-canada-goose_442.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-milan_99.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-soldes_241.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-ca_288.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pbi_252.html

http://www.canadagoosefemmehomme2016.fr/manteau-hiver-canada-goose_480.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose_120.html

http://www.canadagoosefemmehomme2016.fr/ecusson-canada-goose_168.html

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/canada-goose-toronto-outlet_483.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme-pas-cher_199.html

www.canadagoosefemmehomme2016.fr/canada-goose-accessoires_183.html

www.canadagoosefemmehomme2016.fr/canada-goose-champs-elysees_360.html

www.canadagoosefemmehomme2016.fr/site-officiel-canada-goose_432.html

www.canadagoosefemmehomme2016.fr/canada-goose-bordeaux_397.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme_376.html

www.canadagoosefemmehomme2016.fr/canada-goose-homme-pas-cher_440.html

www.canadagoosefemmehomme2016.fr/canada-gooser_220.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme_44.html

www.canadagoosefemmehomme2016.fr/vetements-canada-goose_64.html

www.canadagoosefemmehomme2016.fr/canada-goose-pbi-chilliwack-bomber_73.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-homme_298.html

www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html

www.canadagoosefemmehomme2016.fr/boutique-canada-goose_378.html

www.canadagoosefemmehomme2016.fr/nouvelle-collection-canada-goose_451.html

www.canadagoosefemmehomme2016.fr/canada-goose-veste-femme_363.html

www.canadagoosefemmehomme2016.fr/victoria-parka-canada-goose_338.html

www.canadagoosefemmehomme2016.fr/canada-goose-banff_129.html

www.canadagoosefemmehomme2016.fr/palliser-canada-goose_261.html

www.canadagoosefemmehomme2016.fr/constable-canada-goose_67.html

www.canadagoosefemmehomme2016.fr/parka-goose-canada_46.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose_93.html

Comment by sguerra376 1 day ago

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-noir_114.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

http://www.canadagoosefemmehomme2016.fr/usine-canada-goose_85.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-toronto-outlet_483.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose-femme_206.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-rabais_88.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-graphite_389.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-foxe_91.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-authentique_434.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-femme_69.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-toulouse_459.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html

http://www.canadagoosefemmehomme2016.fr/shelburne-canada-goose_418.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-noir-femme_346.html

http://www.canadagoosefemmehomme2016.fr/manitoba-canada-goose_482.html

http://www.canadagoosefemmehomme2016.fr/langford-canada-goose_290.html

http://www.canadagoosefemmehomme2016.fr/hommes-canadian-goose_102.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose-pas-cher_78.html

http://www.canadagoosefemmehomme2016.fr/entrepot-canada-goose_158.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-langford-parka_444.html

http://www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-expedition-homme_207.html

Comment by sguerra376 23 hours ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-femme_69.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-homme_298.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-occasion_186.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-the-chateau_364.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme_328.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-en-suisse_89.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pas-cher_192.html

http://www.canadagoosefemmehomme2016.fr/point-de-vente-canada-goose_304.html

http://www.canadagoosefemmehomme2016.fr/canada-canada-goose_246.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-prix-usa_359.html

http://www.canadagoosefemmehomme2016.fr/pantalon-canada-goose_315.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-homme_296.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka_61.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-montebello-femme_128.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-banff_129.html

http://www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html

http://www.canadagoosefemmehomme2016.fr/parajumpers-ou-canada-goose_87.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme_474.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-grise-femme_269.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-chateau_400.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fourrure_377.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-montebello-femme_373.html

Comment by sguerra376 21 hours ago

www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

www.canadagoosefemmehomme2016.fr/vente-doudoune-canada-goose-femme_197.html

www.canadagoosefemmehomme2016.fr/canada-goose-citadel_470.html

www.canadagoosefemmehomme2016.fr/whistler-parka-canada-goose_309.html

www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose_93.html

www.canadagoosefemmehomme2016.fr/livigno-canada-goose_72.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose_433.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-langford_425.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-langford_176.html

www.canadagoosefemmehomme2016.fr/canada-goose-tuque_58.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-a-vendre_450.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-chateau_427.html

www.canadagoosefemmehomme2016.fr/canada-triple-goose_260.html

www.canadagoosefemmehomme2016.fr/victoria-parka-canada-goose_338.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwak_109.html

www.canadagoosefemmehomme2016.fr/acheter-doudoune-canada-goose_258.html

www.canadagoosefemmehomme2016.fr/homme-canadian-goose_180.html

www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-amovible_71.html

www.canadagoosefemmehomme2016.fr/leboncoin-canada-goose_481.html

www.canadagoosefemmehomme2016.fr/canada-goose-vs-pjs_443.html

www.canadagoosefemmehomme2016.fr/magasin-d-usine-canada-goose_331.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose_398.html

www.canadagoosefemmehomme2016.fr/site-officiel-de-canada-goose_435.html

www.canadagoosefemmehomme2016.fr/skreslet-parka-canada-goose_469.html

www.canadagoosefemmehomme2016.fr/canada-goose-original_190.html

Comment by sguerra376 12 hours ago

Your point of view

You must be signed in to comment.