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

Get all these commands in a text file with description.

Terminal - Get all these commands in a text file with description.
for x in `jot - 0 2400 25`; do curl "http://www.commandlinefu.com/commands/browse/sort-by-votes/plaintext/$x" ; done > commandlinefu.txt
2009-07-23 12:04:02
User: satyavvd
Get all these commands in a text file with description.

I tried out on my Mac, jot to generate sequence ( 0,25,50,..), you can use 'seq' if it is linux to generate numbers, need curl installed on the machine, then it rocks.



There is 1 alternative - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

instead of jot, u can use seq

Comment by linuxswords 384 weeks ago

Nice work , most of have would not have read the site API ;)

Comment by hemanth 383 weeks and 5 days ago

Nice work , most of them would not have read the site API ;)

Comment by hemanth 383 weeks and 5 days ago

How does it work with "seq"?

I don't have jot installed.

Comment by Neo23x0 383 weeks and 4 days ago

Ah - got it

for x in `seq 0 25 2400`; do curl "

Comment by Neo23x0 383 weeks and 4 days ago

And now we all hammer the tar out of the API. :)

Comment by jbroome 382 weeks and 3 days ago

It's really inconsiderate to hammer a site as quickly as you can; please don't do that. I suggest inserting "sleep 15; "

Comment by ger 382 weeks and 3 days ago

curl can do this all by itself:

curl -O http://www.commandlinefu.com/commands/browse/sort-by-votes/plaintext/[0-2400:25]

Afterwards, simply cat all the files! No jot, no seq.

Comment by Dynetrekk 382 weeks and 1 day ago

You can also use c-style for loops in bash:

for (( x=0; x<=2400; x+=25 )); do sleep 15; curl ...
Comment by dennisw 378 weeks and 1 day ago

Jeepers - I might have to put some capping on the API requests. Yes, a few selected "sleep" commands would be appreciated.

Comment by root 377 weeks and 3 days ago

Create a temp directory to hold all the files downloaded. Then

use "curl -O

Then run this in the same directory to concatenate all the files into one single text file:

"ls -1 | sort -n | while read mork ; do cat $mork >> commandlinefu.txt ; ls -ald $mork; done"

The "ls" command is just to give you something to look at while this runs...

Comment by SuperFly 375 weeks ago

Hmm. Something got cut off. The curl command referenced is curl -O http://www.commandlinefu.com/commands/browse/sort-by-votes/plaintext/[0-2400:25], as suggested by Dynetrekk 7 weeks ago

Comment by SuperFly 375 weeks ago

Your point of view

You must be signed in to comment.