0

If you have archive files having different formats and wondering how to unzip them under a Linux-based system (Ubuntu, Fedora, etc.), then here are some commands that you can use via the terminal to extract the contents of the various archive file formats:

zip:

gunzip file_name.zip

rar:

First install "unrar" with this command:

sudo apt-get install unrar

Use now this command to unpack rar files:

unrar x file_name.rar

tar:

tar -xvf file_name.tar

tar.gz:

tar -vzxf file_name.tar.gz

bz2:

bunzip file_name.bz2

tar.bz2:

tar -jxvf file_name.tar.bz2

That's it!

Post a Comment

 
Top