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

Filter Android log output by PID

Terminal - Filter Android log output by PID
adb shell ps | grep my.app.packagename | awk '{print $2}' | xargs -I ? sh -c "adb logcat -v time | grep ?"
2012-03-14 10:02:11
User: jackpatmos
Functions: awk grep ps sh xargs
Filter Android log output by PID


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

hello can someone tell me about my blog


Comment by musikcamfrog 22 weeks ago

An advanced serious photographer then you definitely little doubt have obtained a single or more specialist video cameras which are excellent as well as pricey. If you are a skilled camera individual when compared with your video cameras are usually worth a large amount of while used in a single location, which is the reason you will not want to adopt a chance sometimes while keeping your current items or whenever moving items from one place to the next. That is why when it comes to choosing a video camera bag you intend to be careful to make sure you make a choice that is the very best suit for ones camcorders as well as their functions.When choosing a video camera bag first thing you'll want to give thought to the place you will probably be traveling with you guessed it-your camera. For example, should you largely decide to put it to use from functions for example loved ones get togethers simply as an easy way involving gathering pictures regarding posteritys welfare then a a higher level protection won't have to be as excessive helping you to spend rather less. Even so, should you generally journey together with your camera along with acquire photographs although walking or engaged in virtually any active sporting activities you'll want a camera bag http://www.hermesbeltsbirkinkellybag.co.uk/ together with integrated added safety that is to be well worth paying out a bit more.In add-on, you must think about the amount real vacationing you may be performing with your digicam in terms of selecting the most appropriate digital camera bag. If the majority of your going around is done in the vehicle after that your video camera is going to be mostly shielded, but if you usually soar in repeated instances then you need to think about safeguarding you got it during flow. You will discover particular photographic camera bags made just by flying if you are considering checking your digital cameras and they're really worth the expense the fact that how your cameras are worth and just how very much a great airport is willing to.After you opt for the amount you got it gets harmed with carry the next matter that you need to consider when scouting for video camera bags is just how several you will require because very likely likely to affect your allowance for new digicam bags. By simply environment a financial budget you give a parimeter while you shop which will help allow you to cost-effective choose the best video camera bag for every single photographic camera bearing in mind the price of your camera that you will be protecting with each and every invest in as more funds must be numbed away pertaining to camcorders better importance.At this time with all of the factors separated you could start to help search on the internet your more different options fostering to check out the types of materials which might be employed for you bags as well as precisely what is used to safety net the particular camcorders in. Your goal ought to be to obtain the leading photographic camera bag you can pay for with the best price which can try taking some checking but will be well worth every penny considering that the end result will probably be final video camera safeguard that you can trust.

Comment by stephanieg915 2 days ago

Crumpler photo bag is extremely renowned for the brilliant as well as colour total models. Its any bookbag. Crumpler makes bags that go with the present day manner shooter. Crumple is one of the highest increasing manufacturers involving digital camera, laptop, commuter, photo and way of living bags on this planet. That they providing the appealing factor that individuals bags will not appears to be photographic camera bags so that we could end up being preserved via intruders that people may well meet on our vacations or maybe everywhere.How will a Crumpler image bag produce by itself unique?Crumpler photograph bags are generally exclusive business bags because "Chicken Tex" materials are employed for defend that creates this bag pretty much water-proof in every methods. Super effectiveness item materials, utilized and keep the colour new in addition to bright, in order that it can appear to be as brand new almost like it have been just lately obtained, despite using long time. The interior covering is made from water-proof coating, which isn't so easy being nicked simply by business things, which usually making sure your very long time of use.A Crumpler image bag just as one addition so when Cozy bagsIt provides great benefits to its people. The leading objective of some sort of crumpler image bag is to safeguard you via outer facets age.g the high temperature with the sunlight, rain, particles, and even more importantly chafes. Some sort of crumpler picture bag safe and sound the digital camera from the possibility to heal through large damage in the event you unintentionally dropped your camera. Back pack design of crumpler bags leads to far more comfort and ease as we carrying on around your rear shoulder pertaining to time period of quite a while. Every single position is incredibly nicely shock absorbing as well as crumpler bag has lots regarding wallets that distinct every little thing.Why to purchase and Number of Crumpler image bagCrumpler bag is very reputable along with well constructed It's got excessive protection level for each and every gear both it's digicam or something different It is more at ease and also sense of balance when transported .We are able to entry just about any tools whether or not it truly is upon shoulders .It truly is far more Stylish, modern Crumpler photograph bags come in a number of shades match your selection. You can choose your own favorite coloration on http://www.hermesbeltsbirkinkellybag.co.uk/ your crumpler picture bag.For that purpose you may use the internet that can offer you in-depth information about in which type of photography bags. The net also provides you actually with sample photos of the particular bag, possible colours pertaining to that kind of style and design, and more importantly you may also look into the tariff of any particular one crumpler photography bagCrumpler Image Bag

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.