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

Equivalent to ifconfig -a in HPUX

Terminal - Equivalent to ifconfig -a in HPUX
for i in `lanscan -i | awk '{print $1}'` ; do ifconfig $i ; done
2010-01-28 17:46:56
User: foobarnl
Functions: awk ifconfig
Equivalent to ifconfig -a in HPUX


There is 1 alternative - vote for the best!

Terminal - Alternatives
for i in `netstat -rn|egrep -v "Interface|Routing"|awk '{print $5}'`;do ifconfig $i;done
2011-12-16 09:49:03
User: giorger
Functions: awk egrep ifconfig
Tags: ifconfig hp-ux

Command is properly working on HP-UX 11.31

for i in `lanscan -i | awk '{print $1}'` ; do ifconfig $i ; done 2> /dev/null
2014-10-31 09:25:26
User: innominable
Functions: awk ifconfig

not shown ifconfig error

netstat -nr|egrep -v "Routing|Interface|lo0"|awk '{print $5}'|sort -u| while read l; do ifconfig $l ; echo " Station Addr: `lanscan -ia|grep "$l "|cut -d ' ' -f 1`" ; done
for i in `netstat -rn |grep lan |cut -c55-60 |sort |uniq`; do ifconfig $i; done
2010-01-28 17:35:20
User: Kaio
Functions: cut grep ifconfig sort

HP UX doesn't have a -a switch in the ifconfig command.

This line emulates the same result shown in Solaris, AIX or Linux

Know a better way?

If you can do better, submit your command here.

What others think

Will not work if you have ip alias . . .

Comment by chirel 166 weeks and 3 days ago

Are you fed up with holding big bags with hefty band? Do you want to exchange signal of one thing lightweight and also cost-effective? Point out hi there to your drawstring backpack bags. Most of these bags are generally smooth, at ease and lightweight to be a feather and further they support straps that are adjustable along with thin. The most important good thing about using drawstring rucksacks is that you could crease them being a material and retail store these very easily as part of your desk it uses very little. Many are consequently tiny that http://www.hermesbeltsbirkinkellybag.co.uk/ you can be conveniently carrried these individuals in the bank! Store everything in these bags particularly meals stuff, publications, markers, water containers, among others. It's also possible to pick from a variety of colorings offered for instance african american, light red, yellow-colored, blue, brown leafy, etc.Drawstring bags are commonly made use of by university students because they are elegant, vibrant and are avalable throughout gorgeous patterns. Currently, companies production recycleable shopping bags, gymnasium bags, seaside bags, food bags and cloth bags for that convenience of clients. These kinds of bags are environment-friendly and less expensive when compared to the methods made out of plastic-type material. Almost all of the retail outlets currently manufacture searching bags having graphics to enhance his or her company along with attract shoppers. On the other hand, the particular bags usually are soft, all-natural and are avalable in several shapes and sizes geared to the needs of buyers. The ways to access the main benefit of creating it using embroidery, floral prints, and also other eye-catching designs. The reason why companies go for these kinds of bags can it be makes a resilient effect around the consumers. At the same time, it bathrooms corporations the main benefit of less expensive advert. Businesses in particular cannot commit a good deal with promotion their products. Through the help of brand produced bags, they are able to very easily appeal to buyers without spending a lot in advertising. Purchasing bags are generally cost-effective and they feature additional pouches, facet bags, as well as different pockets with regard to possessing dog pens, cell phones, etc. The major good reason that people like these kinds of Eco-friendly shopping bags is because are constructed with all-natural products that will not damage the earth or even the specific. As an illustration, a number of the jackets used by bag produce contain hazardous chemical substances that might cause skin problems just like breakouts, irritation, and many others.With all these positive aspects and more promotional bags while share is a smartest choice if you need to attract numerous consumers. By way of in this way, it is simple to advertise your goods as well as attract a huge number of individuals. But, by means of trade show bags at wholesale prices, you can get several bags you would like from very affordable premiums. Regardless of you need to have, you can make use of these kind of bags as they are convenient to carry about and classy to think about!

Comment by stephanieg915 16 hours ago

The A bottle of champagne Preference, Where the Luxurious is with the Personal savings Legitimate Custom made Handbags intended for 90% away, it\'s about time! My Champagne TasteWhere the luxurious influences Savingsits About Time! At Our Champagne Preference, the luxurious is with the financial savings using authentic developer handbags for 90% off! My own Wine Preference is surely an interesting fresh on the internet dime auction site which offers traditional custom handbags, equipment as well as top-of-the-line shopping area gift certificates in either anything public sale or even a get it currently solution. Several of the wonderful products listed on this particular penny sell incorporate genuine artist handbags, gift cards along with other accessories coming from this http://www.hermesbeltsbirkinkellybag.co.uk/ sort of common in addition to famous names since Prada,, Fendi, Saks and also Bloomingdales. At that on-line cent auction, bids are ordered beforehand intended for.50-.99 dollars every single. This extra bidding process cost means that special public sale bids are placed through critical visitors solely. Many auctions can start $0.10 without the need of arrange. The particular public auction price raises by a couple cents whenever a wager is placed by the prospective buyer. Also, the particular market clock boosts with a minimum of Just a few seconds with each and every wager, making it possible for all bidders the chance convey a quote just like they might get within a classic public auction. If the public sale egg timer gets to absolutely nothing, one more prospective buyer generates around 90% off the list price in the sold merchandise. No bidder leaves our own penny market clear approved. A get it now option is provided to all those bidders that lost the particular penny sell yet still wish to get one in our genuine developer handbags, gift cards or any other excellent merchandise at the price. Together with the buy it today selection, the item exists on sale similar to your market price with the merchandise without the presence of value of your bids put by that distinct prospective buyer with each of our on the internet cent sell. At Our Bubbly Style, each of our quest is always to supply our associates with all the best real developer handbags and other products though providing top of the line customer satisfaction. Most objects sold at this on the net penny sell are guaranteed to possibly be brand new in addition to fully authentic merchandise. Each item acquired on the cent auction site is shipped with guarantee and reliability files to help emphasize our resolve for excellent.

Comment by stephanieg915 13 hours ago

Your point of view

You must be signed in to comment.