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

Encrypted archive with openssl and tar

Terminal - Encrypted archive with openssl and tar
tar --create --file - --posix --gzip -- <dir> | openssl enc -e -aes256 -out <file>
2012-11-27 15:33:45
User: seb1245
Functions: tar
24
Encrypted archive with openssl and tar

Create an AES256 encrypted and compressed tar archive.

User is prompted to enter the password.

Decrypt with:

openssl enc -d -aes256 -in <file> | tar --extract --file - --gzip

Alternatives

There are 10 alternatives - vote for the best!

Terminal - Alternatives
tar c folder_to_encrypt | openssl enc -aes-256-cbc -e > secret.tar.enc
2009-07-23 06:03:39
User: recursiverse
Functions: c++ tar
5

command to decrypt:

openssl enc -aes-256-cbc -d < secret.tar.enc | tar x

Of course, don't forget to rm the original files ;) You may also want to look at the openssl docs for more options.

openssl des3 -salt -in unencrypted-data.tar -out encrypted-data.tar.des3
2009-10-03 03:50:46
User: berot3
3

The lifehacker way: http://lifehacker.com/software/top/geek-to-live--encrypt-your-data-178005.php#Alternate%20Method:%20OpenSSL

"That command will encrypt the unencrypted-data.tar file with the password you choose and output the result to encrypted-data.tar.des3. To unlock the encrypted file, use the following command:"

openssl des3 -d -salt -in encrypted-data.tar.des3 -out unencrypted-data.tar
tar zcf - foo | gpg -c --cipher-algo aes256 -o foo.tgz.gpg
2013-03-13 09:44:39
User: skkzsh
Functions: gpg tar
0

Decrypt with:

gpg -o- foo.tgz.gpg | tar zxvf -

Know a better way?

If you can do better, submit your command here.

What others think

A usage example of this command is now documented here http://otomaton.wordpress.com/2012/12/22/create-encrypted-archives-with-openssl/

Comment by seb1245 212 weeks and 3 days ago

Your The planet pandora Jewellery range of Macram trinkets present you with a rainbow-like coloring structure of colours like dark, khaki, crimson, off-white, off white, orange and red. The popular visible is fully gone by means of lashings involving either 14ct Gold or perhaps 925 Hallmarked Sterling Silver on completions of the necklace. Historic although modern-day, just about every well comprehensive The planet pandora Necklaces macram bracelets acquire Several hours to perform. This necklaces may be emphasized that has a solitary bead as well as show, supplying the ability for that wearer to be able to include a certain precious such as a wonderful or maybe value studded portion.Michael Kors BagsThe tote bags moreover come with inside of storage compartments designed to hold smartphone and crucial bands as well as fobs to support keep your keys inside of effortless setting. You may be meaning a visit to the wall socket as well as to businesses, you will find a kind of bag that could absolutely maintain all of your goods, although leading you to stand out at the same time.Attention to help depth, enthusiasm and dedication are usually Versace's many unique characteristics. The watch selections espouse the emblem name's attraction, this preciseness connected with Exercise watch-making and also the elegance associated with German good quality bracelets. They will integrate Switzerland preciseness layout along with Chinese design. Value pertaining to history include having a continuous seek perfection and also Versace excels due to its impassioned exploration of the that means and ultizing regarding signals as well as different goods as well as stones.You will certainly view when you start your own ask for the Piece of fabric looks forward to to add in in your selection is because they possess 5 various loved ones in which their particular wrist watches are usually regarded, Piece of fabric Genuine ones, Swatch Irony, Piece of fabric Pores and skin, Swatch Beat, and Swatch Bijoux. Swatch originals are incredibly this cheap cased watches that can be found in various types, designs, as well as dimensions. Your Swatch Contradiction are usually aluminum cased designer watches. Piece of fabric Skin looks like the Example Original copies the plastic-type is quite a bit leaner making this watch lighter. Piece of fabric Overcome could be the electronic digital type of watches. This Swatch Bijoux lines are the actual accessories brand.You may scan the internet within predicament you desire accept added regarding Handbags Store Handbags. You will definitely get a assortment of website which usually locate regarding Handbags Wall select. In addition to the information, may apple iphone 4 images in addition. You could check out every one of the images, types, sounds and also dimensions of the actual bags.If you will be keeping a much cooler site, as well as preparing to visit to a wonderful nation throughout X-mas Breaks, and then purchasing a classy winter season layer is perfectly absolutely essential. Coders tend to be damageding their brains to offer their finest especially in affect on jackets for girls. Plenty of brand-new gizmos ended up noticed with fall/winter 2009/2010 fashion runways through Russian identified layers, to interesting camel shaded sounds, and cocoon models. Should you have made proper effort into get a winter weather period coating subsequently it truly is required to understand exactly critically the things that is certainly in in the course of as in style gimmick. It's possible to make a design statement by means of admitting these kinds of designer fashion model trends within wintertime many weeks layers.Evaluate the web based on the internet search engine Rankings with the Online Website" Whilst you search the world wide web pertaining to getting footwears, examine the to-do listing of sites that come in leading rankings from the online on the web search engine consequence web site. Inside cases you are searching for unique Footwears element away that after you know inquiries.Every view was made to looking glass the specified heart involving Versace. Versace's making use of associated with precious and complicated gemstones within their timepieces and add-ons tend to be substantial involving Versace type. The wrist watch models are additionally recognized by simply clean lines in http://www.hermesbeltsbirkinkellybag.co.uk/ addition to regular style and colors including Ancient greek fusses along with the Medusa. Within these designer watches, time-honored appearance satisfies the particular heart and soul of the current globe, developing a noticeably modern-day and also sexy layout.

Comment by stephanieg915 1 day ago

Recommendation the rates" Being among the most crucial things in online obtaining should be to perform a price verify. Despite of for anyone who is acquiring BCBG footwears on the web or a, going over the cost is the vital point to reassure on your own the greatest buy. Don't tumble in obtaining something that foliage your current tote blood vessels decline. Alternatively, contrast the rate on the model to internet websites to make sure in your individual the best good deal.As if this report regarding elements has not been extraordinary satisfactory the listing cost about this bag is $198.50. This specific bag can certainly ease and comfort any type of kind of autumn equinox clothing. Your list pace for this bag furthermore causes it to become quickly supplied intended for practically anyone. Possibly be forewarned, a number of the Internet site On-line Totes may cost about $3,000.Evaluate the web based http://www.hermesbeltsbirkinkellybag.co.uk/ internet search engine Rankings from the On the net Outlet" When you search the world wide web to get shoes and boots, check the list of websites which include top has a high ranking in the online internet search engine end result page. With case in point you want certain Footwears identify which after you know query.For fashionistas about in addition to especially those who are stored on your action on a regular basis, handbag variety plane set is wonderful for fall months, winter months and in fact for all months. If you are intending to advance 1 keypiece this particular the fall, the best to help decide on is definitely the Hamilton Weaved Handbag by means of. I believe I'm going to place this particular on my xmas list as well as wish in which Finished clam will unquestionably produce this particular to me.December 15, This year, Handbags Website market place, started out the speed of worldwide development. Closing due to the fact March 7, 2013, the particular in Bucks Sixty one.21, offers climbed 206 pct, compared with the particular 20 dollars difficulty value features basically was lately one of the most successful Initial public offering. Presently, the industry importance of approximately Bucks 12.Some billion dollars, far more compared to Nine dollars.Just one zillion Burberry approximation Instructor Buck 15 billion dollars.This logo form of additionally reflects inside watches. These kind of wristwatches tend to be based on the original styles we have already been viewing for some time of energy now but you are done and adorned as though these kind of really attempted in addition to tested styles out of the blue come to be impressive in their own right.Task Driveway sponsor Heidi Klum makes sure to become kindlied whenever the woman seess bag givings this year. Many thanks on the high-rating reality Tv set selection, is swift becoming a house term for United states layout. Their latest bag assortment includes an amazing number of floor plans from zebra-striped get bags in order to tailored handbags regarding fashionably small business ladies that will almost always be on the action. Aged possibilities including clinging logo splendor continue to be showcased.When you take care of a hazards that you possibly get rid of the idea, then you'll certainly feel fairly stressed about that. as a way you're not acquire preparation you'll consistently eliminate many prospect that may achieve your precious metal. In order pertaining to I am anxious, now the Handbags is actually discounted, would you merely remain underneath in addition to complete stay away every little thing and merely ignore it.

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.