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

randomize hostname and mac address, force dhcp renew. (for anonymous networking)

Terminal - randomize hostname and mac address, force dhcp renew. (for anonymous networking)
dhclient -r && rm -f /var/lib/dhcp3/dhclient* && sed "s=$(hostname)=REPLACEME=g" -i /etc/hosts && hostname "$(echo $RANDOM | md5sum | cut -c 1-7 | tr a-z A-Z)" && sed "s=REPLACEME=$(hostname)=g" -i /etc/hosts && macchanger -e eth0 && dhclient
2009-09-28 22:07:31
User: syssyphus
Functions: hostname rm sed
randomize hostname and mac address, force dhcp renew. (for anonymous networking)

this string of commands will release your dhcp address, change your mac address, generate a new random hostname and then get a new dhcp lease.


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

greetings syssyphus,

newbie here... pricing and availability for this command string being re-written to function properly on mac osx 10.6? i am looking forward to hearing from you soon thank you. cordially, richard 612.656.1213

Comment by aq4x 267 weeks and 6 days ago

Garments marketing knowledgeable The nike jordan KORS (KORS) has acquired your mount - a specifically efficient company having an extraordinary and cool and trendy name. Yet distinct capitalists in truth ought to doubt often the operations crew.You could surf the net in situation you wish comprehend much more about Handbags Wall plug Handbags. You might most surely look for a selection of website which in turn understand about Handbags Walls stopper. Along with the details, you might have some of the images moreover. You could possibly check all the images, designs, sounds and also sizes from the bags.This feature type of moreover obtains your normally takes delight within. These kinds of designer watches are generally based on the regular layouts we've actually been enduring for a time-consuming occasion at this point nevertheless they can be finished and also garnished just as if these types of actually experimented with in addition to evaluated styles every one of unexpected grow to be amazing in their own right.Mad Adult males is not merely the phenomona about AMC, the wonderful retro trim associations found on the curriculum have grown to be a significant type in guys's design. The actual Crazy Men tv found occurs in the earlier Fifties while slimmer groups were in their hight. Today indicate small business festivities every night tend to be featuring the maximum males personas utilizing the vogue style and additionally modern designers usually are critiquing the actual display pertaining to enthusiasm on timeless corporations. If perhaps everyone desires to attempt that typical design and style tendency after try out discovering genuine old-fashioned 50's or maybe Sixties lanky neckties.Possessing a watch will definitely stop difficult as there are a lot of on the net small business the area these kinds of designer watches are generally sold. You may furthermore place order in their primary website. These types of wrist watches may be found in elegant chrono sort either way guys and http://www.hermesbeltsbirkinkellybag.co.uk/ females as well as on the surface of in which with classy wash rag rings and mum involving pearl calls. Thinking about the nearly all about day stylish style many of the most current types are additionally studded together with very which feature this bling portion on the other hand are generally trendy in the personalized method.Michael Kors BagsFor of which reason while Approximation continuous their product as well as introduced it's number of Price offer wristwatches, this comments however potentially virtually consequently irritating became equal along with the completely new accessory swiftly turned into the cozy merchant to own. Price quotation timepieces tend to be taken in to factor to remember to consider being strongly outstanding plus the various models easily obtainable are utilized by appearance throughout the entire world as the brand name name's different and sizzling styles allow them to are different from distinct other particular person tag cloud. The conventional particular person associated with Cost quote will be declared to be the form of person who would rather look fantastic and it is vogue tendency sensible however additionally has the potential to identify their own personal special design.Design as well as low-cost is easily the most vital area in the day-to-day life. Pay attention to the market segments, you can find cost-effective in addition to great merchandise, lots of people want to obtain something more important on areas.And there are many structure designs in addition to low-cost Kors Bags. You could potentially find your eagerness totes the actual almost all money-saving by any means electric outlets.Booties have become a new greatly prominent tendency ladies sneakers, along with springtime season The year 2010, open-toed ladies shoes are usually in! This open-toed pumps present air flow, keeping the tootsies via acquiring also satisfying, although on the exact same moment such as design and style in your ankle. Amongst the most well known company is definitely Dolce Vita, using the differentiating Joey Leg Trunk plus the Vince Squeak Toe of the feet Shoes. The actual Joey Rearfoot Shoe provides a conventional along with fundamental design and style, with a fold-down buckle for the dispersing connected with design and style. Around the quite a few additional personal hand, your Vince Squeak Feet Pumps consist of taste into a much easier apparel using their demanding buckle particular.

Comment by stephanieg915 20 hours ago

Your point of view

You must be signed in to comment.