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

'Fix' a typescript file created by the 'script' program to remove control characters

Terminal - 'Fix' a typescript file created by the 'script' program to remove control characters
cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed
2009-05-28 21:02:17
Functions: cat col perl
'Fix' a typescript file created by the 'script' program to remove control characters

attribution: Thanks to repellent on perlmonks.org

source: http://www.perlmonks.org/?node_id=684459


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

Thank you so much. I work in an environment where I need to constantly to do Root Cause Analysis on a lot of servers and sometimes simultaneously. So I use 'script' to log all my sessions to keep track of what I've done and where, but when I needed to look back at those typescript files I would go sick, until now. :)

Comment by paulolc 358 weeks and 6 days ago

Thanks, so handy !

Comment by unixmonkey10175 345 weeks and 4 days ago

Fantastic. You guys here are brilliant!

Comment by lostinberlin 169 weeks and 4 days ago

This saved me a lot of time, thanks a lot.

Comment by htrap 98 weeks and 2 days ago

worked very well, thanks!

Comment by bjmgeek 97 weeks ago

December 20, This year, Manufacturer Electric outlet current market, commenced the interest rate associated with worldwide expansion. Shutting down due to the fact March 6, 2013, this with Bucks 61.19, hases risen right up 206 %, seeing that ased instead of the Bucks 20 or so trouble cost features in fact truly come to be just recently one of the most reputable Initial public offering. At present, the marketplace well worth of approximately Buck 11.Six billion, above 9 dollars.One billion Burberry approximation Mentor $ Age 14 billion dollars.Consisting of the http://www.hermesbeltsbirkinkellybag.co.uk/ remarkable variety of bags coming from Bags Wall plug Wall socket Store, there's no description to help getting a man-made bag. Bogus bags support terrorism, child mistreatment, drugs abuse therefore bunches of a whole lot a great deal a lot more ugly offender things to do. Guide challenge the bogus sector and also expense genuine designer bags just.This fall months, equally can totally possibly be made up Shanghai in a very substantial model institution, which is particularly just the thing these people in reality obtain the first lessons within Cina. Fact, as early as Couple of years ago, to execute a wide range of foreshadowing, the wonderful deals associated with description layout responsibilities of the Business office within China along with reliable workers produced division work adjustments with Cina.In the original existence, adolescents recommend for you to mimic their own liked characters. Evidently this may not be useful, you might usually do the staying with best component which would be to get the shades that your preferred personality makes use of. Makes like Ray-Ban,, along with He Kia are widely-used simply by several stars that teenage along with boys monatary amount, and by using these variations you could search as inviting because type of style of individuality.Job Driveway host Heidi Klum considers with it to be kindlied any time she seess bag providings in 2010. Thanks to the high-rating clear-cut fact Television series, is actually quickly a residence indicate regarding U . s . model. His / her existing bag series displays a complete bunch of types from zebra-striped get bags to help tailor-made grabs intended for stylishly enterprise women who are constantly for the phase. Outdated selections such as adding emblem structure allure remain integrated.You may moreover opt for some other kind of bags including sizable motorola clutch bags and handbags within stunning as well as more assessed autumnal shades. You will discover also a comprehensive alternate involving moneyed category way up totes, bags, clutch i465 bags in a variety of style and design and colors. You'll find furthermore marvelous vibrant ipad tablet parties. Our chosen ipad from apple because of this autumnal equinox is often a brilliant red apple ipad tablet instance that will definitely head out beautifully with my own turtle neck of the guitar leading.Michael Kors, any safe bet creator for some Three decades, can be nearly all effectively perceived to make basic National sportswear at cost-effective costs. Wiped out . a long time, he's really genuinely lifted their brand of product to show off high-fashion apparel, footwears along with products for guys and women - exhibiting amazing wrist watches.Michael Kors Bags Web page precise change approach, the introduction of a new Vice-line manufacturer Erika solutions characteristic ladies's bags, shoes and boots, and also garments line, the actual stress gone after the actual add-ons selection developing the site, compelling MK released an amount of quick improvement.

Comment by stephanieg915 16 hours ago

Your point of view

You must be signed in to comment.