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

pretend to be busy in office to enjoy a cup of coffee

Terminal - pretend to be busy in office to enjoy a cup of coffee
while [ true ]; do head -n 100 /dev/urandom; sleep .1; done | hexdump -C | grep "ca fe"
2010-10-05 16:23:31
User: campassi
Functions: grep head hexdump sleep true
pretend to be busy in office to enjoy a cup of coffee

Not as taxing on the CPU.


There are 8 alternatives - vote for the best!

Terminal - Alternatives
cat /dev/urandom | hexdump -C | grep "ca fe"
2010-09-27 08:20:44
Functions: cat grep hexdump

just make some data scrolling off the terminal. wow.

j=0;while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : `sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words`" 6 40;done
2010-10-08 12:12:00
User: houghi
Functions: echo seq sleep

This will turn it in an infinite loop and also shows random words from a file, so it won't be the same each time and also not just a number.

for i in `seq 0 100`;do timeout 6 dialog --gauge "Install..." 6 40 "$i";done
2010-09-28 06:38:20
User: javisol

The first parameter after timeout is the key parameter; number of seconds to wait. With a 6 you have 600 seconds for your coffee break (10min).

for i in {0..600}; do echo $i; sleep 1; done | dialog --gauge "Install..." 6 40
2010-10-05 02:29:23
User: dennisw
Functions: echo sleep

Dialog's gauge widget accepts progress updates on stdin. This version runs dialog once and updates it every second.

There's no need to use timeout which causes screen flicker since it restarts dialog for each update.

export GREP_COLOR='1;32'; cat /dev/urandom | hexdump -C | grep --color=auto "ca fe"

Know a better way?

If you can do better, submit your command here.

What others think

Thanks, nowhere near as taxing went from 90% cpu from hexdump to 10% can actually compile and do other tasks while on that coffee break now

Comment by lasthunter914 178 weeks and 3 days ago

Jordan Kors has been producing along with thinking about bags regarding virtually twenty years. This individual features a bag referred to as your Astor suede that may be almost certainly comfy light-weight orange Sales, or violet or maybe can come in rappel. It truly is nickel hunk accessories and leather-based lean. Vehicles assists produce a handbag referred to as this O.Complete steel far east along with western side flap bag. It can be delightful tasting in addition to material platinum eagle natural leather in a cover style and design. That bag is produced with regard to eveningwear within and has magic highlights. The Hutch suede flap bag will probably are located in calcium, glowing blue in addition to yellow sand luxurious. It is appealing material features with matching band and an outdoors sack using storage compartments in addition to online appropriate overlay.Michael Kors' spring The year 2010 assortment has a bathing suit to the the middle of thigh for women and very long slacks along with covers for men. All of them range from dark for you to whitened to rose with colours. His parts get bright brown leafy material to back up the primary material at the start. The best style is usually a dark-colored dress using white illustrates all over that. Not merely may be the dress beautiful, but it's mostly of the items in the assortment in which created feeling in my experience.Designers however really like integrating hair to their trend outfits styles to provide extravagance and also feel. Dog's fur movements with the fall and winter regarding The year http://www.hermesbeltsbirkinkellybag.co.uk/ 2010 and also 2011 include things like dog's fur protected boots, extravagant coat shorts, dresses in addition to bermuda, dog's fur collars linked to each layers and also laid-back jackets and also coat throughout vibrant colorings.Remember when deciding on your current Electrical socket Local store wrist watches for getting something which matches well in addition to covers individuals deeper outfit as well as beefy levels you wish to employ. Anyone additionally can choose things which are slightly further artistically stylistically, additionally a whole lot more contemporary in addition to peculiar. Test out your arm injuries through related this with ornament along with corresponding or maybe in addition building a part hues.Michael Kors handbags Upon SaleKors comes as a renowned name with the high end and type logo title these days, specially with all the assortment of builder bags. The story seeing that the best way Karl Anderson turned into Timepieces is rather stimulating. The majority of you may n't get about the history involving amongst the most popular companies inside model fashion earth. Mister. Kors was birthed since Karl Anderson Freshman. They comes from a attractive slight city of Merrick New york which can be inside New york. One regularly wonders what exactly it's along with inventive folks along with prolonged region!People that have completely new or maybe somewhat utilised products and then sell these people intended for big savings sort online auctions. You'll save the big bucks by purchasing by way of dwell online auctions. Most importantly, you can choose what you would like to cover while not having to talk about spending budget. Be sure that you be described as a registered auction web sites consumer. It's a one-time stuff that will take A few minutes and it's really Cost-free!Michael Kors Handbags Electrical outlet specializes in model tendency and complex models that may undoubtedly useful into a modern-day buyers. The timepiece line focus classy and chic designer watches who have usual features together with dazzling aesthetic gems. Spectacular wash rag as well as stainless-steel give rings, mother-of-pearl switch encounters, designer watches together with abandoned wrist watches as well as good-looking steels are only a several of the capabilities which are included straight into takes enjoyment with.When hair trend very first arrived into the landscape people acquired hardly any alternatives; they could obtain a short or long fur in mink, beaver as well as raccoon as well as in light brown or maybe darkish. Developers after that advanced to be able to more color choices, type options, and also pelt kinds and in many cases started off pairing other materials, including natural leather, suede, micro-fibers, material knits and also cashmere in their hair fashion types.

Comment by stephanieg915 3 days ago
























Comment by sguerra376 1 day ago

Your point of view

You must be signed in to comment.