13 June, 2011

How to extract tar.gz file in Linux

How to open or Untar a "tar.gz" file in Linux or Unix:

Type the following command to extract the file to the current directory:

tar -zxvf yourfile.tar.gz

You can specify a different directory to extract to using -C parameter and a path to the directory as follows:

tar -C /myfolder -zxvf yourfile.tar.gz


No comments: