Linux CLI Tarball extraction

May 27, 2013 | Linux, shell

Need to extract a bzip2 or gzip file? well here’s how to do it  :


Bzip2 in the file.bz2 format :

  • bunzip2 file.bz2

a tar file with bzip2 compression :

  • tar xjvf file.tar.bz2

A tar file with no compression :

  • tar xvf file.tar

A tar file with Gzip compression :

  • tar zxvf file.tar.gz
  • tar zxvf file.tgz

A 7zip file :

  • 7z x file.7z
  • 7z x

Rar Files :

  • unrar x file.rar

Pin It on Pinterest

Share This

Share this post with your friends!