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.

If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/

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





Draw a Sierpinski triangle

Terminal - Draw a Sierpinski triangle
perl -e 'print "P1\n256 256\n", map {$_&($_>>8)?1:0} (0..0xffff)' | display
2009-07-08 17:50:23
User: dstahlke
Functions: perl
Draw a Sierpinski triangle

OK, not the most useful but a good way to impress friends. Requires the "display" command from ImageMagick.


There are 29 alternatives - vote for the best!

Terminal - Alternatives
perl -le '$l=80;$l2="!" x $l;substr+($l2^=$l2),$l/2,1,"\xFF";{local $_=$l2;y/\0\xFF/ ^/;print;($lf,$rt)=map{substr $l2 x 2,$_%$l,$l;}1,-1;$l2=$lf^$rt;select undef,undef,undef,.1;redo}'
2013-06-21 06:00:24
User: l3v3l
Functions: perl

xmas lights for your terminal - switching the $l value to something like 1200 and zooming out on your terminal gives a great view ...

Know a better way?

If you can do better, submit your command here.

What others think

Fun! I like it.

Comment by kaedenn 325 weeks and 3 days ago

ftw! dude. r0x0rz

Comment by linuxrawkstar 325 weeks and 3 days ago

Fun !

Nice plotting approach ...

Comment by CodSpirit 325 weeks and 3 days ago

nice, i'd have voted twice because of the extra geek factor if i could ;)

Comment by masterofdisaster 325 weeks and 2 days ago

Commandlinefu isn't always about practicality, it is often about coolness. And this command certainly qualifies.

Comment by nitehawk 325 weeks and 1 day ago


Comment by srand 323 weeks and 5 days ago

go fractals!

Comment by bbelt16ag 323 weeks and 4 days ago

Your point of view

You must be signed in to comment.