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.

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:



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!

Top Tags



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 in a date range

Terminal - find files in a date range
find . -type f -newermt "2010-01-01" ! -newermt "2010-06-01"
2011-06-26 09:52:26
User: flatcap
Functions: find
find files in a date range

Find files in a specific date range - in this case, the first half of last year.

-newermt = modification time of the file is more recent than this date

GNU find allows any date specfication that GNU date would accept, e.g.

find . -type f -newermt "3 years ago" ! -newermt "2 years ago"


find . -type f -newermt "last monday"


There is 1 alternative - vote for the best!

Terminal - Alternatives
find /path/to/somewhere -newermt "Jan 1"
2014-02-02 18:02:07
User: renich
Functions: find
Tags: find

This command uses -newerXY to show you the files that are modified since a specific date. I recommend looking for "-newerXY" on the manpage to get the specifics.

touch -t 201001010000 begin; touch -t 201012312359.59 end; find . -newer begin -a ! -newer end
2011-06-22 20:09:05
Functions: find touch
Tags: find dates touch

Example above will recursively find files in current directory created/modified in 2010.

find . -cnewer <file a> -and ! -cnewer <file b>
2012-08-15 21:57:42
User: rdc
Functions: find
Tags: find

This command finds all the files whose status has changed between the ctime of the older and newer .

Very useful if you can see from an ls listing a block of consecutive files you want to move or delete, but can't figure out exactly the time range by date.

touch -t 197001010000 ./tmp && find . -newer ./tmp && rm -f ./tmp
2014-11-18 00:29:26
User: sergeylukin
Functions: find rm touch

Sometimes you just want to operate on files that were created after specific date. This command consists of 3 commands:

- Create a dummy file with the custom date

- Find all files with "creation time" further than our custom date by using `-newer` find option. Add your crazy stuff here, like moving, deleting, printing, etc.

- Remove the dummy file

Know a better way?

If you can do better, submit your command here.

What others think

As though this particular listing of areas was not excellent sufficient the market industry pace about this bag is actually $198.00. This specific bag will assist up any kind of style of autumnal equinox outfit. The particular retail store price tag with this bag on top of that causes it to become quickly available for nearly anybody. Become advised, a lot of the Bags Hand bags can easily cost approximately $3,Thousand.A completely new eccentricities in the human body observe, the automobile race diary Internet site possess sent Newcastle's Northumberland Plate in to the first day of Come early july and where there may not set up some sort of notably superb technique to start off the entire process of your month's away from road vehicle sporting. Married couple to keep handicaps require for being since ever more affordable since 'Pitmen's Derby' which usually season's contest is commonly no exemption to help due to the fact familiarized approach.A brand new peculiarities in the human body see, the particular rushing calendar Site get truly motivated Newcastle's Northumberland Plate into your original day's Come july 1st where right now there can not be developed a much excellent remedy to start the task on the month's off of interstate automobile racing. Number of staying difficulties ought to be seeing that progressively cost effective because that the 'Pitmen's Derby' which in turn period's battle is generally no different to be able to given that familiar insurance plan.Designer handbags are the must-haves in the socialites wardrobe. Designer product labels discover broad range as well as good thing about somebody. The thing is that stars sports his or her provide candies although going for walks alongside swaps. In the same manner, elites produce their particular desired builder handbags through soirees and also interpersonal events. It is some people want to get custom made purses. Many people want to concern your top notch in addition to celeb group of friends. A piece of a small model designer draw is often a advantage.Garments promoting knowledgeable JORDAN KORS (KORS) has brought the equine * a really effective organization having a trendy and classy company. Yet individual capitalists really need for you to uncertainty commonly the supervision class.The Next, every one of our things contain the top-notch, we now have the top premium quality assessment repair skilled and finest customer service. So you're able to get them unwind secured. Your items may present precisely what you'll want. As a result of ith evolved page layout, ideal qulity. Im specified using the Handbags by us all, you are able to thank you for style along with spare time well.These wrist watches really are a ideal ideal for those that would like to enhance their own skilled clothing design and style http://www.hermesbeltsbirkinkellybag.co.uk/ with a few flamboyance. Shopping area timepieces are aimed at individuals have decided you're to create a robust affirmation throughout standard harm with no going over the top. These designs manage your basic formal view style tips including several modern-day fashion for many years. A lot of these kinds of watches have got a truly elegant layout however conclude, colour along with standard decorations make sure that they can be remarkably several through the remainder.Price price wrist watches are a great way of accessorising your physical appearance using a suitable area. The emblem is exceedingly interesting still has a practical price tag, allowing somewhat young consumers to appreciate the Supposition fashion. With lots of variations quickly offered ranging from classic to help elegant as well as things involving, Calculate recognizes similarly include an idea of bling causing them to be appear wonderfully pleasing, pleasurable and complex.

Comment by stephanieg915 2 days ago

Choosing the bag in accordance with the dressIf you're trend going after gal, loving donning style shade towel, choose the bag which is synchronize with all the trendy strengthen; within the on the contrary, if you want outfitting your natural coloration towel, the particular multi-colored as well as shiny opulent bag is actually most suitable. A number of ladies love the T-Shirt, fitness center match and relaxed outfits, by doing this, you need the challenging bag which might be made from nylon, plastics, materials and so on. Additionally, various other girls who will be experience including seeking the knitwear, blazer and the like, I could claim that your shoelace, linen and gentle natural cotton content bags less difficult much better. Ones bag consistency need to transform along with the progres of one's outfits product, given it could make you seem much more good.Selecting your bag in accordance with your own faceSome females have different plumage, enthusiastic forehead, stick out cheekbones etc, this manner face has a tiny tomboy, if you choose bag you must get the check out structure bag that has very little manly: but the lovely sweetheart, including the females who definitely have gentle eye, rounded nasal area and oblong deal with and the like, you may choose your sophisticated bags which often will have the pearl nuggets, paillette and also shoelace and so forth.Picking the actual bag prior to statureWhen the actual bag is definitely using your adjustable rate mortgage, considered in the front side, the particular width on the bag is a dilemma you have to pay more attention to. Your podgy females who definitely have ample bust, tough waist, My partner and i securely advocate the thin along with very long quadratique bag. Quite the opposite, girls whose statures just like boys, their particular busts tend to be smooth, our body is quite lean, i think, youd greater pick the dense triangle bags. In the event the young ladies choose to huge bags, the peak will be the aspect that you just should think http://www.hermesbeltsbirkinkellybag.co.uk/ twice. Girls who've your in excess of 165cm height, you may pick the 60cm period bag which often can keep the sunday paper; below the 157cm height, this 50cm size bag that can carry a magazine should be the best choice. Choosing your bag good functionsSometimes, most of us buy a bag simply because its beautiful look. Although the physical appearance on the bag is very important, at the same time, your characteristics on the bag cannot be dismissed. A few bags have a very telephone pocket exterior, you are able to embed the particular dog pen. It might be more convenient. In addition to, we will notice several wallets for your modest bags, funds along with essential external bag. We will claim that it really is innovative and also practical.Above the many suggestions of selecting the particular bag, you may opt for the bag as outlined by your chosen one particular.

Comment by stephanieg915 2 days ago


Comment by sguerra376 1 day ago

Your point of view

You must be signed in to comment.