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

python smtp server

Terminal - python smtp server
python -m smtpd -n -c DebuggingServer localhost:1025
2009-02-05 16:50:44
User: jemerick
Functions: python
python smtp server

This command will start a simple SMTP server listening on port 1025 of localhost. This server simply prints to standard output all email headers and the email body.


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

Sample output

---------- MESSAGE FOLLOWS ----------

Content-Type: text/plain; charset="utf-8"

MIME-Version: 1.0

Content-Transfer-Encoding: quoted-printable

Subject: Contact Form: subject

From: [email protected]

To: [email protected]

Date: Thu, 05 Feb 2009 17:01:06 -0000



Message from sender ([email protected])


------------ END MESSAGE ------------

Comment by jemerick 414 weeks and 4 days ago

please add smtp tag to this command.

Comment by infinitylx 315 weeks and 4 days ago

added tags

Comment by jemerick 315 weeks and 4 days ago

Women currently usually are extremely sentient concerning the technique they look, dress and stylize. They can be fully in love with what's in as well as trend and the've this specific constant need of searching gorgeous or sophisticated all the time. Because of this involvement in design and beauty, style provides been through an incredible advancement. These days, it's not just limited to garments as well as boots but will also involves different varieties of extras and also jewelleries. From them, purses and handbags and handbags participate in an incredibly big part. They can be really modern together with currently being extremely filled with meaning additionally.One may now take advantage wholesale handbags as well as handbags on the market also. The beauty of these individuals is always that their prices are very affordable. One gets the same in a shopping mall even so the merely thing that prevents one coming from purchasing it there is a price tag, which isn't a difficulty having wholesale goods definitely. All people and you can now buy them.Purses along with handbags help that you full kinds all round mien and also retain kinds stuff. There are various bags suited to various instances and achieving the right choice is definitely an fine art merely number of can certainly get better at. As an example as well shiny or maybe elegant bags are certainly not appropriate for conventional occasions in which simple coloured bags must be applied. Through the use of from suppliers purses along with handbags, women and girls can certainly own a wide range in practical fees. The overall saying of most low cost vendors will be, "purchase more to pay less".They are simply just great for people females who enjoy staying elegant yet not at the expense involving investing wades of income. While purchasing identical, a number of issues that you need to take into consideration. One thing is http://www.hermesbeltsbirkinkellybag.co.uk/ to verify along with check this longevity of the actual dealer. This way anybody can think good quality in time. Acquiring a trusted provider can be very complicated occasionally although because of online search engine such as Yahoo and google, this kind of huge job is now simpler.In actuality obtaining wholesale bags on the web is easy and simple. It can end up being on the list of best conceivable choices of ones life. Yet at this time there should always be correct investigation in order to have an awesome cope. To make certain the store is definitely legitimate and reliable, it's possible to check it's assessment articles my partner and i.elizabeth. what exactly their potential customers have written regarding the subject along with their support. If you have virtually no testimonial column one thing is bad also it demands versions full attention as well as factor. Testimonies are something that must not always be overlooked or disregarded.

Comment by stephanieg915 2 hours ago

Your point of view

You must be signed in to comment.