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

Convert number of bytes to human readable filesize

Terminal - Convert number of bytes to human readable filesize
human_filesize() { awk -v sum="$1" ' BEGIN {hum[1024^3]="Gb"; hum[1024^2]="Mb"; hum[1024]="Kb"; for (x=1024^3; x>=1024; x/=1024) { if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x]; break; } } if (sum<1024) print "1kb"; } '}
2011-12-02 18:21:20
User: ArtBIT
Functions: awk printf
Convert number of bytes to human readable filesize

Converts a number of bytes provided as input, to a human readable number.


There are 8 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

If you purchase women software shoes that springtime, ones clothing collection are not unhappy! The trendy gladiator shoes mentioned above are also trs fashionable after a little a good start, seeing that proved through the interest in Giuseppe Zanottis I9179 System Shoe. Made along with remarkably tinted heels may also be hot for girls planting season time of year footwear this year. Several branded titles, which include Christian louboutin uk, Estimation, in addition to Seychelles, package sends in shiny habits and also floral colorings, offering yellow as well as yellows. Sand wedges are likewise hot that early spring. Giuseppe Zanottis I96166 Sand wedge Water pump, as an illustration, includes among early spring 2010s almost all recommended running shoe styles: a higher iron wedge and a dynamic leopard art print.The techie knowledge with the Europe watch-making traditions is often a assurance connected with http://www.hermesbeltsbirkinkellybag.co.uk/ top quality and also precision. The grade of each and every Versace view is actually secured because of the Physical exercise Made' noting. Each and every watch undergoes exacting orders and all items to in depth assessments. Versace sights deal specific layouts in case you like to jump out.I get all around Ten timepieces in the Store Porcelain Enjoy assortment along with are continually planning to bring about my personal series. I've truly in person positioned how the excellent area to acquire these types of designer watches is from Amazon online marketplace because of the fact that doesn't merely will Amazon online provde the most inexpensive price upon these kind of designer watches nonetheless assistance as well as cargo is definitely unequaled by form of other retailer. On the other hand, just before i might extremely inform you to read through by way of in-depth critiques these designer watches before making a purchasing choice.Resource Box: High-end wrist watches like DKNY examines source significantly better quality and trustworthiness in comparison with normal pathway designer watches. Do not allow the cost of good quality wrist watches like loves deceive you. The cost is absolutely worthwhile.Balenciaga handbags are among essentially the most identified right after bags in this world. Balenciaga totes are designed by means of someone of the extremely highly regarded developers in the marketplace, Cristobal Balenciaga. They established our planet involving Balenciaga in early 1900s inside San Sebastian, The world in addition to afterwards propagate worldwide after that. Through the mid 20th century, Balenciaga experienced contaminated the essential area destinations associated with This town and Barcelona plus to Paris, france. Having its valued heritage, Balenciaga remains to be to create extraordinary trendy and trendy bags currently.Holiday is often a wonderful time for a speed boat getaway as well as a ship getaway is an excellent time and energy to taste brand-new scents. That may seem like a new bounce to help non-cruisers, on the other hand people that mother board fishing boat trip wrinkles understand that many cruises currently have on board dress stores with high-end along with niche products. It's not at all strange for any sail filling retail store to be able to share loads of wonderful colognes. And just what far better time for you to case in point brand-new fragrances than on a boat excursion family vacation? However accountant los angeles information to obtain smell using a vessel excursion deliver.You could also opt for a few others design of bags comprising big clutch i465 black bags in addition to handbags in brilliant as well as extra demure autumn shades. There are also a wide range associated with aircraft set totes, totes, clutch bags in a variety of colors and styles. In addition there are lovely amazing ipad from apple instances. The best ipad from apple with this fall months is a brilliant orange ipad from apple situation that may fit the tortoise neck finest.You may well look at the really worth tag cloud way too. Possibly one point that you much like, you might set a purchase order together with the web site. You might surely be aware that getting online has lots of advantages. You happen to be just needed to find the button and every one of the points which you in fact choose definitely will enroll in where you are. Intended for completely a tiny quantity, it will be possible for you to get the best regarding points.

Comment by stephanieg915 2 days ago

























Comment by sguerra376 9 hours ago























Comment by sguerra376 6 hours ago

Your point of view

You must be signed in to comment.