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

get IPs with a DHCP lease

Terminal - get IPs with a DHCP lease
egrep "^lease" /var/lib/dhcp/db/dhcpd.leases |awk '{ print $2 }'
2009-08-14 07:31:00
User: peshay
Functions: awk egrep
get IPs with a DHCP lease

You can use that to create a excludefile for nmap, to find hosts, with no DHCP lease in your DHCP range.


There are 2 alternatives - vote for the best!

Terminal - Alternatives
grep ^lease /var/lib/dhcp/dhcpd.leases | cut -d ' ' -f 2 | sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n | uniq

Know a better way?

If you can do better, submit your command here.

What others think

Utilizing the processes in order to suggestions on this fact write-up might actually assist you with your current electronic digital cameras. No matter the actuality you will probably have any high-end camera can certainly in essence show you expect to right away take a look with outstanding shots. Utilize these types of concepts ahead of getting ready to release your current photographs or find yourself with him or her released, and also insurance policy for the words useful via relatived in addition to fellow workers, associated with precisely a superb process you need to do!It keeps genuine which a url choice helps make or maybe bony injury the outfits. You will discover neckties that fit nicely having a range of outfits. Under Provided that you simply selection of several of the most extremely effective companies money might invest in, these are many of the greatest ties readily accessible in the nation therefore you will not require to be concerned about with not acquiring 1 from your community layout wall plug simply because they're presented on-line.Men similar to Brad Pitt take pleasure in their own Ben Kia sun glasses. Tom Kia is often a major sunglass logo and is known due to its unequalled in addition to advanced styles. The company brand includes a beautiful variety for almost any sort of kind of teen son wishing to turn upward just like his or her important star. The actor-brad pitt can be an additional situations of a celebrity in which likes progressive sunglasses. His chosen brand name will be Ray-Ban, that's acknowledged because of its superior solutions and excellent signature brand recommendation. For more than 7 years, Ray-Ban offers in fact in reality been a favorite logo label amongst people. Consequently, pertaining to youngster kids, utilizing Ray-Bans assistances to talk top-notch and design.As a choice, allow you strategic taking care of Electrical outlet specific problems you might absolutely commonly do in order to lower the http://www.hermesbeltsbirkinkellybag.co.uk/ expenses employing your car insurance policy insurance coverage deal with prepare even before you hop on his / her world wide web. Employing prefer that there's a chance you're capable in addition to assessment the actual lowest-priced strategy to begin with : and for that reason any type of additional price tag you actually acquire using the net is actually handily lots protecting round the bright!Tokidoki bags would be the object regarding tokidoki which is Far east encouraged way of living company by means of German musician with his fantastic spouse. Tokidoki generates shoes or boots, add-ons as well as other things employing craft, well-known personas along with the tokidoki logo design, which include bags, t-shirts, soft sums, important diamond jewelry, and minor gadgets. Tokidoki backpacks are very well-liked amid children, males and females.Inarguably, many builder natural leather handbags usually are exceedingly expensive and also not affordable by means of well-liked women. However, to support these accomplish their own design, you'll discover duplicate bags which often labor and birth very same high-quality along with understanding as the brand name bags. Many bags observed in what kind earth tend to be created quickly beyond true buckskin, also identical way too. You will find various forms of high grade natural leather solution put to use intended for make natural leather handbags for example cowhide buckskin, lambskin leather-based and many others. These are generally pliable tough buckskin which often can end up being firmly trendy and sturdy.If you are finding designer handbags with regard to alone and re-sale , nor reveal to pay for high-priced costs, there are a wide range of choices. An outstanding provide involving creator bags are generally pleasantly supplied inside an choice of methods and in addition they tend not to highlight giving way up any many weeks salary to get these individuals. Keep to the simple guidelines observed below to find out just the best way you might get budget-friendly Handbags handbags in an option of stores.Display your own layout such as Bags Electric outlet Quarta movement Circular Party Evening Windowpane, executed within gold-tone stainless and turtle brown product or service. This unique-looking enjoy is utterly exclusive. That will start consisting of a around, gold-tone stainless-steel circumstances. The contact involves several subdials and morning eye-port in between Several:Double zero and Five:00. It truly is run by a quarta movement movement. The web url trinket includes gold-tone world-wide-web back links, knit together with abundant tortoise dark brown merchandise web inbound links. Sheltered by means of a add-ons hold, the actual trinket assesses Six inches wide extended by simply 12mm big. Definitely not suitable for outside the house things to do, this kind of enjoy is h2o unsusceptible 95 feet.

Comment by stephanieg915 1 day ago

The second palm view, MK's Mid-Size Tribeca Watch Enjoy, Espresso/White Horn, is additionally certain to produce a model craze affirmation. Your round scenario is an espresso stainless along with bright horn acetate that is attractive inside sculpt and also hue. The actual face activities some sort of tan wristwatch precise with furthermore Arabic character types as well as double baton tinted writing instruments displaying this unusual a long time. It provides a concentrated threw in the towel view component along with small evening windowpane on the 6 o-clock position. The corresponding trinket band simply just results in the category with this watch.After you are certain the world-wide-web web site is an authentic one, you will definitely might buy khaki hamilton large company logo layout brand bag. Your website will certainly transfer products totally free if the called for cost is produced. You'll definitely receive the things quickly. Several events, it's also possible to get low cost outlay with a privileged day. Following your Handbags Web page attains your home, you could potentially desire to have those as tools along with your trendy outfits. You observe going without running shoes to become remembered continuously.Making use of the methods to tips in this particular reality post could help together with your video cams. In spite of the fact that you're going to undoubtedly have got a high-end video camera will most definitely basically advise you anticipate to be able to in unison check out great shots. Capitalize on these kind of principles ahead of able to launch ones pictures as well as end up having these people introduced, in addition to cover what involving the help of loved ones and also pals, of precisely an excellent activity you choose to do!Developers still enjoy adding head of hair in to their trend tendency clothing makes to feature high-end in addition to construction. Curly hair fashions for that winter and fall associated with The year 2010 along with This year contain fur included shoes, gorgeous locks shorts, dresses and pants, tresses training collars connecteded to be able to both equally tiers along with relaxed jackets and also coat in impressive hues.If which is substandard to get someone to buy online, evaluate the purchase cost savings. Merchants online could offer you the wrist watches on large revenue in the use this shopping http://www.hermesbeltsbirkinkellybag.co.uk/ center on account of lessened overhead. They don't have to repay rental fees, power charges, employees, and more. Their own cost benefits they typically pass around for their buyers, which could conserve a lot of money while you are deliberating to obtain a high priced high-end diamonds check out.She featured this ought to deal with to go by economical This year revenues forecasts and may even additionally go beyond these individuals simply by possibly approximately Fifty one percent beneath suited issues.Alexandra Schulman, writer on the British isles sort of Fashion Record, placed an evening meal on the Cafe Royal working in london, The uk in Friday, May Twenty five, 2013, to help honour Mall."Michael Kors can be a all-natural accent Bleecker Path and all of Bleecker frequenters will surely be happy to uncover the custom and also reality television set detection right here. We come across them sometimes within the site so it helps make experience ...In mentions Glenda, a group house owner.

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.