ICT Button with Arrow Green Leaf Toucan Extended

We help businesses stand out, so they significantly increase their chance of converting more leads

+ 0 %
Increase in conversion off a high base - Manufacturer
0 %
Increase on conversion rate - B2B Service Business
+ 0 %
Increase on leads with a simple 1 page UX/UI revamp - B2B
+ 0
Awards & mentions across 4 different industries since 2009

Need a strategy?
Let’s point you in
the right direction

Required fields

Call us curious cats...

Blog

11 Feb 18

Compress and Extract Files using tar on command line

Julian Chan | Web Development

As web developers, we deal with ‘tar.gz’ archives quite often.  Here are a few useful commands.

Creating a ‘tar.gz’ archive from a directory

  tar -zcvf archive-name.tar.gz directory-name

Extracting a ‘tar.gz’ archive

  tar -zxvf archive-name.tar.gz

Option types for tar

There are various ways to specify options when using the ‘tar’ command:

  • tar -z -x -v -f archive-name.tar.gz
  • tar -zxvf archive-name.tar.gz
  • tar zxvf archive-name.tar.gz
  • tar –extract -verbose -gzip – file archive-name.tar.gz

For further information about all the options, you can use the command line man page or online

Google Review Image