Hide

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.
Hide

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:

Hide

News

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!
Hide

Top Tags

Hide

Functions

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

Mount a VMware virtual disk (.vmdk) file on a Linux box

Terminal - Mount a VMware virtual disk (.vmdk) file on a Linux box
sudo mount vmware-server-flat.vmdk /tmp/test/ -o ro,loop=/dev/loop1,offset=32768 -t ntfs
2013-07-29 14:45:29
User: JeremyinNC
Functions: mount sudo
1
Mount a VMware virtual disk (.vmdk) file on a Linux box

Assumes XP/2000/2003. For Server 2008+ try offset=105,906,176 You can find this number in the System Information utility under Partition Starting Offset. UEFI based boxes you want partition 2 since the first is just the boot files (and FAT). This works with (storage side) snapshots which is handy for single file restores on NFS mounted VMware systems

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
kpartx -av <image-flat.vmdk>; mount -o /dev/mapper/loop0p1 /mnt/vmdk
2014-09-25 23:05:09
User: rldleblanc
Functions: mount
10

This does not require you to know the partition offset, kpartx will find all partitions in the image and create loopback devices for them automatically. This works for all types of images (dd of hard drives, img, etc) not just vmkd. You can also activate LVM volumes in the image by running

vgchange -a y

and then you can mount the LV inside the image.

To unmount the image, umount the partition/LV, deactivate the VG for the image

vgchange -a n <volume_group>

then run

kpartx -dv <image-flad.vmdk>

to remove the partition mappings.

Know a better way?

If you can do better, submit your command here.

What others think

Installed with ladies surprise selections via wrinkles for example Alfred Performed, Feel associated with Red by Lacoste, Red Candy through Aquolina, H2o di Gio by Giorgio Armani, DKNY by Donna Karan, Gentle Orange by means of Dolce & Gabanna you may locate critically the suitable gift idea for your special feminine in your life.Haemmer watches are usually attentively developed to make certain the highest level regarding good quality and also performance doable. These are pretty much strong, produced from sturdy substances that will endure underneath the lively life-style of the very http://www.hermesbeltsbirkinkellybag.co.uk/ most laid back person.Waterscape Resort, the master of the modern, 50-story Cassa Motel as well as Homes at 66-70 West 45th Road with Midtown can be suing their developing business regarding $30 trillion, re-inifocing that this company by no means bought insurance policies to cover defaults by means of its subcontractors. Pavarini boasts, on the other hand, who's performed have the insurance policies and settled a huge selection of a great number of us dollars within prices. Within July 07, Waterscape worked Pavarini to construct Cassa, that's established by simply Assa Properties. Within the commitment, Pavarini has been obliged to acquire Subguard insurance plan to protected in opposition to prospective nonpayment through its subcontractors.The Philip Coltoff Middle components on Sullivan Street will unquestionably go in the marketplace, seeing that dependant upon a new consentaneous election last week because of the Panel involving Trustees with the Children's Help Culture. The particular selling of the Greenwich Village qualities has actually been opposed by simply group homeowners, such as Brooke Guards, in addition to moms and dads, considered one of which features in fact published a claim to avoid the college by closing. Though there isn't any proper listing but, an earlier quotation appreciated the actual components, just one from 219 Sullivan Path and yet another at 177 Sullivan, to get value amongst $20 in addition to $30 trillion.If you are searching for design and sophistication in a very boot, Wall plug. provides the type to suit your needs. Footwears are viewed about an item because it helps to finish some sort of clothes. If you are dressing up to go available for the nights or else you are just loosening up over the walk, you will surely appreciate the types of.Haemmer Germany features truly designed the timepieces with all the user convenience planned, in addition assures the pace and working likeness with their timepieces. The particular extended forgotten about expressing involving "you obtain everything you pay out for" can be exact while using Haemmer view. Your time and money within among the that extravagant watches will definitely make certain you possess the greatest watch presented, in addition to countless words of flattery on the stylishness for just a whiles.Brooklyn Borough Chief executive Marty Markowitz possesses in fact legally tossed his or her help guiding any recommended "Skyscraper Traditional District" name for Midtown Brooklyn, having a small amount of alterations. Markowitz claimed he would undoubtedly take out the particular 70 Livingston Street co-op framework in the area, because the co-op owners have demanded, and also reported this individual Would certainly continue the meant store alteration to get a area of the Borough City Framework, one of several guarded frameworks in the places strategy. Neighborhood Mother board 2 already has identified as in assistance of here is the plan, which might definitely risk-free many of the region's most critical constructions, made up of Borough Place.Designer Todd Nassi presented the previous Midtown offices of the Jewish Everyday Send out to your Shedd Angeles-based organization known as New york city Accommodations 33 LLC intended for $20 thousand in a very quick make use of once you've got the home the very same evening in the long-time masters. Nassi's BCN Development got in fact prepared to create a 108-unit property with the six-story website with Forty-five Distance 33rd Street referred to as your Workmen's Eliptical construction.

Comment by stephanieg915 2 days ago

This specific link is not likewise lean and neither can it be likewise wide, this is the correct measurement, it's really a timeless jasmine cotton link with reddish lashes managing diagonally, oahu is the excellent summertime along with spring year decision for you. Do not forget that jasmine meets effectively having off white, african american, and several other in shape shades. The Laguna Red stripe Soft silk Association furthermore also comes in spring season eco-friendly and already stated many it is just a Stated in UNITED STATE piece.Despite economical tough economy, the fashion business is nonetheless growing. Canada profile worth is actually consitently ascending throughout the last 10 many months. Google tips details signifies that the fashion with regard to Micheal kors handbag possesses really rose above A hundred thirty Pct in the last Twelve months. There has been many problems around him self supplying the gives you coming from his personal expense account. This exercise provides basically eventually left some entrepreneurs a bit nervous.Balenciaga uses using goat wash rag which has a by simply natural and organic means worn peek. Balenciaga purses and handbags usually are remarkably created to boast a mix of pattern, excellent and show. Just about every Balenciaga handbag will be spacious satisfactory to keep all things you will definitely ever previously will surely dependence on every day, nevertheless popular ample as a ideal equipment whether or not that have actually been empty. Notables like Nicky Hilton usually are recognized using a Balenciaga bag on the hands.I received that experience in the event it pertains to Movie theatre by Yves Saint. Laurent. I actually enjoyed this aroma sufficiently once i widely used the particular cardstock trialist strip yet happen to be many other smells which looked extra intriguing, notable and exciting. Nevertheless when I did a "examination" of using Shows to have an day, I considered my partner and i experienced the particular fragrance.MK started in the clothing, 2005, MK consider the gold use of progression of the actual add-ons, add-ons get to be the quickest growing high-end baseding with Altagamma Analysis details reveal, by The year 2005 to help The year 2010, the pad twelve-monthly advancement cost associated with 9 % in 2010 the worldwide add-ons revenue connected with Dollar Fifty-seven.5 billion, a Twenty five percent write about on the high quality goods enterprise. This components in addition over the economical tough economy associated with 2007-2009, only income increase in the luxurious collection, this years product sales development of 17 %.An http://www.hermesbeltsbirkinkellybag.co.uk/ extra options to only obtain shopping area, if they are generally online or perhaps bricks-and-mortar interests. Simply by shopping in these outlets, you are confident to obtain true bags for a small fraction from the price they are made available for from the custom niche look retailers. An internet based store store could possibly have additional alternatives in comparison with the actual physical opposite number and you will similarly be expecting exactly the same budget-friendly charges at this time there.The 1st Timex seemed to be noticed in 1949 and also since that point Timex is really a adversary regarding generating excellent wristwatches on affordable costs. One particular main clarification it is same goes with which in the course of now, most jewellery industry experts noticeable up the goods sold to be able to buyers FIFTY Per-cent, even so, Timex sought after their particular wrist watches being affordable, as a result they merely helps the actual dealers to place a new 30 percent markup on the wristwatches, hence outstanding here your premiums with their opposition. At first, a lot of jewellery experts declined to give the Timex wristwatches. Timex was not prepared to quit and decide on rather to make available their timepieces instantly to some other online stores such as components retailers and pharmacy.Michael Kors, a prize-winning programmer for a lot of Three decades, is most beneficial realized regarding developing eternal American sports wear from low-cost prices. Through the years, they have actually enhanced his type of product to add high-fashion clothes, shoes or boots along with add-ons for males business women * displaying excellent watches.

Comment by stephanieg915 2 days ago

http://www.canadagoosefemmehomme2016.fr/constable-parka-canada-goose_97.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pour-b��b��_146.html

http://www.canadagoosefemmehomme2016.fr/doudoune-goose-canada_292.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-france_265.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-jogging_460.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-moncler_415.html

http://www.canadagoosefemmehomme2016.fr/boutique-en-ligne-canada-goose_131.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-plusieurs-fois_152.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-langford-parka_444.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-com_213.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack_393.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-camp-hoody_50.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-occasion_262.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chelsea_326.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-grise_145.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-entrepot_141.html

http://www.canadagoosefemmehomme2016.fr/canada-canada-goose_246.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-toulouse_459.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-d-occasion_466.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-logo_212.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-enfant_337.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-prix-canada_277.html

http://www.canadagoosefemmehomme2016.fr/achat-canada-goose-en-ligne_153.html

Comment by sguerra376 10 hours ago

Your point of view

You must be signed in to comment.