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

Display lines with a given string

Terminal - Display lines with a given string
look mysql /etc/group
2009-04-24 18:20:20
Functions: look
Display lines with a given string

Look search for lines in a file that beginning with a given string.

Same as $ grep ^n /etc/passwd


There are 4 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Tested on 3 different systems and this string combination does not work. It's not even close to the same as grep. Grep is actually useful...

Comment by Resolution 403 weeks and 4 days ago

Hunting for a great new fashion at the sensible price tag? The particular low cost handbags by Wholesalesion.internet just could be your answer. By collecting from suppliers, you will receive a significant discount in excess of list rates on handbags as well as handbags. Handbags, containers employed for having income in addition to smaller personalized things or even add-ons (particularly simply by females), can be a fantastic way for you to hold sorted nevertheless end up being trendy.Wholesale Handbags come in a lot of avenues of colours, structure, shapes and forms. Generally obtainable in many places on the net together with by way of a great number of real world merchants, you can make certain you have the most beneficial "bang for your buck" when you purchase in this manner. When you purchase below wholesale you can pay for to obtain various handbags, for various times or maybe situations or perhaps to different the handbags weekly or monthly! Another benefit of getting a low cost handbag is that you may discover nearly any kind of material form obtainable. Seeking synthetic leather handbags, suede handbags, furry handbags or some other style handbags? Check out below wholesale! Wholesale suppliers involving handbags frequently give a wider and bigger selection available, helping you to realize that best accessory for your current wardrobe. If you are looking to resell handbags in your own local shop, within your auction web sites shop or maybe any place else on the net, you have got to locate a below wholesale supplier to present you high-quality inexpensive handbags that one could then publish along with market for an endless potential profit! If you love fashion and style * this is the optimal small business for you. Handbags are a warm ornament and selling quite well. Promoting below wholesale handbags is simple and also exciting, and you'll generate income even though doing the work. Much like obtaining almost every other object of apparel, your handbag really http://www.hermesbeltsbirkinkellybag.co.uk/ should suit your personality supply the impression involving being confident! By high end artist satchels in order to simple and easy and no-frills bags, you could find everything you need from the majority of wholesale handbag companies. You may be a female that prefers leather-based as well as lace, acquiring below wholesale provides you with your many alternatives you need in addition to should make your search finish. Make an impression on every person anyone speak to your own style and also variety! Not merely are usually handbags trendy and attractive, fortunately they are quite functional. These kinds of sites the choice accessible to at wholesale prices shoppers, you'll find which perfect handbag having a location for anything * recommendations, deals, tissues, cosmetics, change, cellular phone plus much more.Handbags in addition help make fantastic gifts with regard to family, then when you buy at wholesale prices, you can easily afford Christmas, birthdays, along with other holiday seasons! Great for sisters, mums, aunties, nanna and simply good friends! Using the big selection and variety of designs offered to below wholesale buyers, it will be easy to seek out a thing for everybody. Currently being sensible along with crucial, handbags create a wonderful gift for the most difficult human being to buy. In the end, each lady requires a special destination to placed your ex possessions out and about.Generally conversing, your wholesale custom made handbags providers of handbags usually give a larger number of bags, hand bags and satchels as compared to acquiring list would. Should you be looking for much more selection, higher quality, more affordable prices, along with a assortment of type, then low cost needs to be the way to suit your needs! You'll usually have a great bag within your give together with wholesale handbags!

Comment by stephanieg915 1 day ago

Bags became one of the part as well as parcels of the day to day life. Routinely in many routines we supply bags. Many of these bags are generally maintained having palm and many these could be hung on the shoulders. In most on the situation, women prefer to take the handbags that are typically small in proportion.This is simply not really the only inclination to cart small bags these females in addition want they handbags, to be taken, must be modern in addition to most recent available in the market.Regarding this particular characteristics of the very of the women employing handbags women accessories manufacturing companies have started paying attention read more about the style superiority the bags in order that they may offer newer and more effective manner bags http://www.hermesbeltsbirkinkellybag.co.uk/ pertaining to such females. Even though the majority of the females prefer to take handbags which can be stylish within identity and fashionable in character, nonetheless choices pertaining to these bags likewise alter from one another. Several of this sort of girls want colorful bags during the other hand some people including uncomplicated seeking sole shaded bags. Once again various other ladies similar bags being pulled similar to canvases plus some some others much like the creature skin color like tattoo designs to get branded into their bags.The differences in your bags don't solely rely on this colorfulness or even the look from the bags but also most of these bags change from one another according to their own products. Most of these bags are constructed of wash rag plus some others are made from real buckskin. In some various other extras shops the particular vibrant beaded bags may also be found in the wholesale buckskin handbags promotes.In last few years it can be observed that your bags that happen to be hand made within The far east became more popular one of many girls. As a result an indication can be made merchants in addition to suppliers they will maintain their clients being released his or her stores by means of importing this sort of modern bags from the Cina from suppliers items promotes.The particular bags produced in the small along with holiday cottage market sectors inside China and that is the reason such solutions can be acquired in just a quite considerable price tag. In like manner acquire ladies popular bags inside cheaper price this importers tend to be motivated to hunt for these bags on the internet.

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.