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

Generate a Random MAC address

Terminal - Generate a Random MAC address
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
2010-09-23 02:31:12
User: putnamhill
Functions: sed
Generate a Random MAC address

Use the following variation for FreeBSD:

openssl rand 6 | xxd -p | sed 's/\(..\)/\1:/g; s/:$//'


There are 2 alternatives - vote for the best!

Terminal - Alternatives
MAC=`(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'`
2009-02-16 07:09:43
User: vaporub
Functions: cat md5sum sed

Original author unknown (I believe off of a wifi hacking forum).

Used in conjuction with ifconfig and cron.. can be handy (especially spoofing AP's)

hexdump -n6 -e '/1 ":%02X"' /dev/random|sed s/^://g
2015-01-19 03:09:43
User: rubo77
Functions: hexdump sed

Generate a random MAC address with capital letters

od -An -N10 -x /dev/random | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'
od /dev/urandom -w6 -tx1 -An|sed -e 's/ //' -e 's/ /:/g'|head -n 1
2011-05-16 15:05:34
User: karel1980
Functions: head od sed

Just increase the 1 at the end if you want to generate more than one.

(Alternative to "| head -n N" you could use the -b flag of od: -b $[6*N]

while ( true ) ; do if [ $(expr $RANDOM % 2 ) -eq 0 ] ; then echo -ne "\xE2\x95\xB1" ; else echo -ne "\xE2\x95\xB2" ; fi ; done
2015-01-17 12:46:37
User: tobi
Functions: echo expr true

Generates labyrinth-like pattern on UTF-8 terminal in bash.

For fun ;)

Know a better way?

If you can do better, submit your command here.

What others think

Ladies bags are one of the most crucial components ladies utilise all world wide. Whether you're planning to office, college or hang out with friends, you have to pick the best style of bag which matches very well with your style, dress and situation. Let people have a very glimpse from variations of women bags:.Hobo HandbagsHobo bags really are a preferred selection of bags utilized by a massive most women. They are cres formed bags using extended shoulder straps you can suspend over shoulders. Because they are rather huge in proportion, they are able to support a large amount of points inside of. Hobo handbags crafted from synthetic leather are generally getting huge acceptance among the younger generation currently. These types of bags usually are classy, nevertheless high-priced. Flowery patterns upon these kind of bags will be in trend.Tote HandbagsThis can be a fashionable and stylish various handbags utilized by ladies. They are substantial in proportion and might cater to many major items on the inside, such as cosmetics products, books etcetera. They http://www.hermesbeltsbirkinkellybag.co.uk/ can be crafted from different materials, like canvas, buckskin and also nylon material.ClutchesFamous amid celebs and bridesmaid extras, most of these totes are usually spear like in size without any grips. Nonetheless, many of them might have trendy organizations. Custom made grip have become popular, however expensive. They've also been referred to as night time bags, since they are excellent to become taken in elegant nighttime parties. SatchelsThese bags currently have extended bands and are also usually utilized across the body in a very straight way. These are typically employed by students to hold publications along with other such objects. They can be easy to carry, because your fingers are free to perform your own actions. They may also end up being maintained to some refreshments. Both material and also synthetic leather collections are accessible for satchels. Satchels usually are well known amidst journalists also.Baguette BagsThese bags are usually smaller in size, and function some sort of pocket book, similar to a clutch system. It may well have got a secure to help help keeping. These are generally modest, oblong and also filter along with resemble a loaf of bread.Duffel BagsThese bags are usually large in size and have big compartments. They may be perfect if you have to carry apparel or other items along with you for a trip or even a smaller trip. Provided by trolley wheels way too, duffel bags are easy to bring.Field BagsThese girls bags may be well-liked in the battlefields. These bags can be created connected with leather or fabric, and can be employed by women having tomboyish style. Messenger BagsThese bags were being traditionally made use of by postmen. This string chuck can be looped in your chest then it doesn't tumble, even if you're riding as well as race. They are often method to help large in space, and are also normally crafted from powerful fabrics. These kind of girls bags are really easy to useand take. These types of bags at the moment are not in fashion.In accessory the above mentined kinds of women bags, there are many some other type of bags which includes pouches, Kelly bags, lens barrel bags, ocean bags, go-karting bag bags, saddle purses, trapezoids in addition to muffs. Select the just one based on ones personality, and prepare a design statement yourself.

Comment by stephanieg915 1 day ago

Nevertheless initially will come the duties of improving promoting, marketing as well as syndication programs, mentioned a great LVMH representative, Olivier LaBesse. "We have five years to restore a new celebrity name brand," he or she stated.In many, perform everything you can to stop getting misled of your respective funds by being supplied an artificial regarding LV Vuitton merchandise at exactly the same price an initial connected with LV really should opt for!Some from the main benefits associated with finding through all of us is always that we have now plentiful sources and advertising sites regarding e-commerce in the house and also abroad. Therefore, you receive a vast collection of products intended for amazingly eye-catching charges. Each of our state-of-the-art look for invention may provide particulars on goods underneath various different types. Our own distinctive functioning model incorporates common trade areas in addition to the present day enhancements on the web.Look in carry costs upon handbags. Designer merchandise is the top you could have with handbags. However we must be sensible about that just about all can easily get programmer objects. Find the impending neat thing instead with looking glass premium quality bags. Getting these kinds of bags leaves a grin not only on your own confront and also in your funds.While most of these bags are produced, an original bags as well as the different programs furnished by these are usually saved in thought processes to ensure all of the customers are comfortable. The particular replications . are really near the initial bags to ensure that almost any 3rd person are unable to find out the contrast between the initial along with repeated variation. The principle objective of designers whom style and design the replications . is simply because must make a good for having a new bag for these a high conclude make of every single girl the reality. The original versions are really expensive plus a rather number of folks meet the expense of the retail price. That's why individuals usually tend to get the reproductions to experience a similar ailment regarding obtaining a creator bag."Sofia Coppola in addition to electric outlet. should be able to advise you instantly with their bags co-operation. I cannot matter how often I've got truly seen individuals indicating when they will before get yourself a South carolina bag (Sofia Coppola) they might make it for good. This can be the impression you receive when you know something http://www.hermesbeltsbirkinkellybag.co.uk/ is distinct, distinctive, classic. That will is valid with the South carolina bags. This really is among my personal cherished libraries through. The reason why? This skillfullness is amazing knowning that the natural leather thinks so excellent nevertheless it's significantly prior in which. Sometimes Personally i think it's hard to reveal precisely why we enjoy it, since we just perform.LVMH, the actual region's most important group of luxurious manufacturers, last week moved directly into assist petrol the transformation through getting in touch with Jordan Burke, the first kind main operating cop associated with Dior Premium, while Zentai's most up-to-date chief executive.The the issue here is just increased when company web sites rather than Facebook video tutorials tend to be had an effect on, and it is one good reason that will some other nations have got actually accepted a "notification along with notice" process (the Internet goes the actual violation notice along for the center on) rather than "notice and takedown" preventative measure.

Comment by stephanieg915 1 day ago


Comment by sguerra376 1 hour ago

Your point of view

You must be signed in to comment.