Compress and unpack directory in Ubuntu using TAR

2 commands using tar in command line.

To compress using tar

.. directory www/ into tar package, use:

tar -zcf www.tar.gz www/

To unpack using tar

.. package www.tar.gz into current directory, use:

tar -zxf www.tar.gz

If you wish to specify a directory where to extract the package, you need to create the folder first and then unpack using the -C parameter

mkdir ~/package/
tar -zxf www.tar.gz -C ~/package/

You can add -v parameter to show verbose output.

Source: http://www.cyberciti.biz/faq/how-do-i-compress-a-whole-linux-or-unix-directory/

Write a Comment

Comment

Webmentions

  • kamagra další den bez lékařského předpisu

    kamagra online noční přepravní kód

    kamagra nízká cena

  • purchase xifaxan cost without insurance

    order xifaxan in chicago with no prescription

    cheapest buy xifaxan generic switzerland

  • get itraconazole uk generic

    purchase itraconazole purchase discount

    canadian itraconazole no prescription

  • cheap fildena generic online cheapest

    how to buy fildena purchase in the uk

    how to order fildena cheap online pharmacy

  • get gabapentin canada low cost

    ordering gabapentin generic next day delivery

    cheap gabapentin uk generic

  • discount flexeril cyclobenzaprine generic low price

    flexeril cyclobenzaprine the 800 number to place order

    is flexeril cyclobenzaprine a prescription drug

  • ordering dutasteride canada how to buy

    cheap dutasteride spain over the counter

    ordering dutasteride lowest price

  • achat kamagra beau prix pas

    kamagra ups

    générique kamagra pas cher au canada

  • how to order avodart generic pharmacy in canada

    how to order avodart usa seller

    how to buy avodart without a script

  • cheapest buy staxyn cheap online no prescription

    how to buy staxyn us overnight delivery

    Non perscription cheap staxyn

  • order rifaximin price at walmart

    online order rifaximin purchase line

    how to order rifaximin generic cheapest

  • purchase enclomiphene purchase online from india

    enclomiphene generic 100 mg at promotional price or free offer

    how to order enclomiphene generic compare

  • 24 meds androxal

    online order androxal cost at costco

    how to order androxal generic is it legal

  • MyBlog

    itstitle

    excerptsa