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

command line calculator

Terminal - command line calculator
calc(){ awk "BEGIN{ print $* }" ;}
2009-10-23 06:03:07
User: twfcc
Functions: awk
command line calculator

simple function , floating point number is supported.


There are 2 alternatives - vote for the best!

Terminal - Alternatives
bc <<<"..."
zc () { for exp in $argv; do print "$exp = $(( exp ))"; done; }

Know a better way?

If you can do better, submit your command here.

What others think

I love this. Much easier than my previous favorite (also listed here): echo "expr" | bc

Comment by mscar 376 weeks and 3 days ago

Thanks! I created command "calc" from this that I can use from the command line at any time (faster than echo "equation" | bc)




x=$( printf "%s" "${ARG[@]}" )

calc(){ awk "BEGIN{ print $* }" ;}

calc $x

Comment by jrparris 360 weeks ago

The structure sector is at a peak today and has now changed a case in point that a ten years in the past not a soul would've expected that this could have been this way. Outfits have also been by having a earth full of development and change. People want to make a type record having what they are generally using. You will find above a large number of creative designers across the world. All delivers new stuff and classy for the ramp and therefore towards the pavement each and every season. Therefore, variations lovers possess a ton to look up for. A good standard matter as being a T shirt is different a lot. T-shirts styles today have reached his or her fashionable greatest. These days and nights platinum along with diamond jewelry aren't the only real accessories a woman can certainly have on. A Designer handbags may be the most up-to-date and many fashionable fashion accessory on the block. You will notice many individuals hold simply a handbag just as one item along with just about any clothes for the driveway and also on your streets. So just about everyone has wished you could be running a designer handbag, however how should we attempt getting the correct for ourselves? Pursuing the recommendations here is a fantastic way to get the handbag you've always dreamt of. Tip One particular: Be aware about the most effective developers and also separate these. The first and doubtless the most effective critical for invest in a designer handbag is usually to understand information on your own custom made in addition to their trademark design. Whether you such as the typical checker Burberry handbag or perhaps a vintage bag using emblem, is all a point of your selection files. Additionally, you should see what one satisfies your outfits one of the most and which usually represents your individual design in addition to persona more than the rest. Outfits will keep changing fast and also checking up on them can be a tough accomplishment. Therefore, ones focus ought to be on what is more classy as well as resilient. What is the more valuable section of being aware of your creative designers is always that if you are shopping on-line you will find a probably probability which you might discover a number of web sites that sell false designer material. Consequently, once you learn just how the Burberry look at bag seems to be, you would not fit in which lure. Tip Only two:Know your online shops.We are very mindful simply how much internet shopping features developed on this day and age and you will find a plentiful amount of searching internet sites and internet-based stores on the web to help mix up you actually. Many sites are fake and untrustworthy. Consequently, take the time to analysis several excellent shopping sites you are aware constantly provide great deals on custom products so you are aware where you should acquire what you http://www.hermesbeltsbirkinkellybag.co.uk/ need from. Apart via custom made handbags, one more manner sector that is certainly doing well is definitely t-shirts. Tee shirt styles in addition have changed much in which no-one that lived a hundred years before can have believed some sort of T shirt might have looks like just what it does indeed at this time.

Comment by stephanieg915 5 days ago

I love bags! There are many varieties of bags on the market currently. You'll discover top quality types together with those cute normal totes. These day there are many on the web vendors marketing bags and also bags. Should you be considering to purchase a different bag or even a completely new bag, next these guidelines below will certainly assist you in finding sizzling deals with the internet current market nowadays.There are many kinds of bags on the market right now. To start with you start purchasing virtually any kind of bag, it is essential that you realize the several sorts of bags with its uses. Using this method you'll certainly pick the best one which will probably match up your needs.Here will be the different types of bags to pick from.Tote bagsThis style of bag is ideal for holding substantial as well as products. It truly is excellent as it were visit the seaside or even should have your son or daughter about traveling. It's going to offer you large space for the goods. Typically this sort of bag also comes in material supplies.HandbagsThere are many kinds of handbags provided in the marketplace right now. You will discover those constructed from velvety along with silk products which can be employed during special events. There are also handbags that happen to be created from natural leather resources and will supply you with amazing features in your daily journey.Travelling bagWhen picking out travelling bags, it is essential that you receive the best one. As you are are going to be with it to transport all of products, make certain you make the most sturdy one. You can find warm specials in exploring bags which you'll definitely discover in the majority of web stores today.KnapsackThis unique form of bag is usually used by adolescents. This is a fantastic ag which can be used to hold your current school materials just like notebooks, dog pens, textbooks as well as other things you utilization in college. It is very functional and you will invest your things you need to have devoid of the anxieties associated with shedding these along the route.These are just some of various kinds of bags which you may pick from. Nonetheless before you decide just one, be sure it is produced from long lasting products. Opt for the value made available in order not http://www.hermesbeltsbirkinkellybag.co.uk/ to spend beyond your means.Bear at heart that we now have many online shops as well as stores marketing fresh and secondly side goods like bags and other extras. It is important that you ultimately choose the correct one which will complement your choice, demands and price range. On this, you'll certainly receive the best deal actually!

Comment by stephanieg915 4 days ago



























Comment by sguerra376 2 days ago




























Comment by sguerra376 2 days ago

Your point of view

You must be signed in to comment.