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

Show the UUID of a filesystem or partition

Terminal - Show the UUID of a filesystem or partition
sudo vol_id -u /dev/sda1
2009-04-30 01:40:58
User: agentk
Functions: sudo
Show the UUID of a filesystem or partition

Shows the UUID of a filesystem or partition that can be used in kernel root options and in fstab.

Run it without the -u option to generate more information. eg:

~/ sudo vol_id /dev/sda2









There is 1 alternative - vote for the best!

Terminal - Alternatives
blkid /dev/sda7
2010-09-05 12:20:45
User: lineak
Tags: partition uuid

Shows the UUID of the given partition (here /dev/sda7). Doesn't need to be root.

ls /dev/disk* | xargs -n 1 -t sudo zdb -l | grep GPTE_
2012-10-06 20:19:45
User: grahamperrin
Functions: grep ls sudo xargs

Show the UUID-based alternate device names of ZEVO-related partitions on Darwin/OS X. Adapted from the lines by dbrady at http://zevo.getgreenbytes.com/forum/viewtopic.php?p=700#p700 and following the disk device naming scheme at http://zevo.getgreenbytes.com/wiki/pmwiki.php?n=Site.DiskDeviceNames

ls /dev/disk/by-uuid/ -alh
2010-09-04 20:38:28
User: John_W
Functions: ls

Doesn't need to be run as root.

Know a better way?

If you can do better, submit your command here.

What others think

blkid /dev/sda1
Comment by illicium 402 weeks and 6 days ago

One. Fill: Think about the atmosphere especially in which you'll be in your bag. If you think maybe your own resting bag has got the likely of obtaining wet, (similar to over a river are positioned getaway) opt for a unnatural bag, really not a down bag.2. Pounds: In case each ounces connected with weight and each and every half inch regarding bulk could possibly be important, (including over a camping trip) then go that has a along mummy bag. Lower is lighter weight and also compresses straight down effortlessly.3. Appearance: Mummy bags usually are tapered by greater in the far better to less wide at the ft . conclude and have absolutely hoods, causing them to be a cushty suit. Partially mummy bags have included ample minimize along with added in bedroom with the back therefore you can easily commence the feet and thighs and leg near to a little bit more. Square bags provide lots of wiggle place intended for legs and also shoulder muscles.4. conditions Rating: Look for virtually any bag that is rated at lowest Twelve degrees milder in comparison with you think you may need. Think your status is "generous" by simply in most competitive 5 certifications, however be secure and also estimation Ten degrees. It's much better to buy as well inviting and have in order to unzip ones bedroom, rather than dedicate a new sleepless night snowy.5. Your own Comfortable zone: If you're an chilly person (you always rest at your house inside your sweating and also hosiery inside a 60 to 70 stage bedroom while using bedsheets piled with and even so think cool!), be added in mindful along with assume your resting bag will undoubtedly keep you actually inviting for you to temperature ranges something like 20 levels on top of the standing. Consequently, any bag scored to be able to 20 or so levels will maintain you inviting and also risk-free with temps right down to Forty five college diplomas.6. Size: Standard dimension slumbering bags pertaining to people can fit any person nearly 6' large comfortably. You will also appear throughout bags to put it briefly shapes. In the event you absolutely are a tiny person you might get a part with purchasing with all the kid's bag area keeping some money also. enormous individuals wish risk-free bags too. There is not any way you can obtain a good nights rest should you be almost all scrunched up inside of a also very small bag. You will want a carrier that could match up a person in a relaxed manner. If you are being even more than 6' high you will need a lengthy sleeping bag that will match up with 6'6". These kinds of bags tend to be added in secure for anyone connected with wider circumference also. When your hips is actually higher than 40" go with a expanded bag. You may even obtain a slumbering bag expander generating a consistent sized bag roomier.7. Sexual category: Women's slumbering bags are bigger in the sides and also narrow on the shoulder blades compared to standard unisex bags. This style would be to stay away from added o2 move in close proximity to a far more stream-lined frameworked entire body. Could bags in addition presents additional padding with the foot or so field as well as chest muscles for extra comfort during these well known cold locations. You are able to are available all through females bags in parcels of measurements of which include long, frequent and also short to check just about all levels. Females typically generate a lesser amount of strategy temperature compared to men, to make sure they may possibly probably arrive within a sack with a lowered temperatures status added safe and sound as compared to males for use together with exactly the the exact same types of conditions.Conclusion: You'll be able to whittle down your options of bags if you initial understand the load, pounds, condition, temperature score along with comfortable zone. holding this info in advance, will help http://www.hermesbeltsbirkinkellybag.co.uk/ you throughout choosing the satisfactory 3 time period sleeping bags to meet your needs.

Comment by stephanieg915 1 day ago

Continue to be as a good deal by definitely poor within the color pottery ground ceramic tile throughout the washroom. Although this solution might be noticed extraordinary and also organise fully along with neat shows, cleanup is actually reasonably intense. Film through cleanup rep and also touches by using heavy steam can possibly at present have your floor protecting window porcelain ceramic floors porcelain ceramic roof tiles seeking unclean normally associated with whether you could merely cleaned these people. Decide on much less much and much better shady porcelain ceramic ground porcelain flooring to obtain a clean completely excellent Bank account Handbags lookup usually bathroom.Michael Kors wrist watches are made with genuine individuals mind and yes it reveals in their quite doable appearances. You might hardly ever head out inappropriate with a advanced clock - whether you are utilizing a entire fulfill or perhaps the fur together with skinny jeans. It's advocated to get classy in addition to progressive with almost all circumstances.It's no surprise in which expressing which Knee Excessive Boots are continually in style although the style and design modifications regularly. And in now moreover these boots are usually rocking the style marketplace by means of its stylish leap styles. This short article reviews concerning the cool and funky and chic primary Three or more leg increased shoes which might be charming plenty of females using enchanting looks. Below defined are the genuinely sexiest and hottest high shoes or boots with the design craze in advance women even with age.When you take into a hazards that you perhaps dropped the item, in addition to soon after you might surely sense in fact focused on the item. so as you're not attain prep you'll absolutely usually shed numerous opportunity which often can accomplish your current precious metal. So as much as I am anxious, currently Purses works purchase, would you only stay noted right here along with do stay away every little thing and enable the item go.You can also go with a few various other style of bags displaying large clutch bags along with bags within stunning in addition to added governed autumn colors. There are in the same manner a big assortment involving rich course bags, handbags, clutch bags in different designs and colors. You'll find on top of that charming amazing ipad predicaments. The favored ipad because of this autumn equinox is a superb lime ipad scenario that will surely get fully having the tortoise neck primary.You could http://www.hermesbeltsbirkinkellybag.co.uk/ browse the web within conditions you're energized to be aware of included concerning Electrical outlet Bags. You will find an assortment of website which usually learn about Store Shop Walls connect. Apart from the information, you can try this photographs also. It is possible to check all of the pictures, styles, hues and also measurements of the bags.The most current talk about the driveway would be the Electric outlet Inn This year Collection. It provides several of the Palm Arises Contemporary using a Twenty-first century handle easy 70s dimensions. Kors usually takes simple shades in addition to causes them to be shine along with sparkle.Using the strategy in order to guidelines with this fact article might assist you with your automated surveillance cameras. Although you will certainly have a high-end camera really does almost certainly in essence recommend you expect to help together check it out in outstanding attempts. Capitalize on these rules before planning to introduction the photos or maybe get them unveiled, and also cover what helpful via relatived and acquaintances, associated with exactly a first-rate operate you need to do!

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.