How to compress and decompress files in linux?

Categories

Other

Linux

HTML

Groups in linux

Packing and unpacking files in Linux?


How to compress and decompress files in linux?


Answers
 #1      0 
Files in linux can be unpacked in the following way: tar -xf file_name.tar.gz Zip can be unpacked as follows: unzip file_name.zip bz2 can be unpacked as follows: bunzip2 file.tar.bz2 tar -xvjf file.tar.bz2 files tar .tar: tar vxf file.tar files tar.bz2: tar xjvf file.tar.bz2 files tar.gz: tar zxvf file.tar.gz files zip: unzip file.zip files bz2: bunzip or bzip2 -d file.bz2 files gz: gzip -d file.gz files rar: unrar x file.rar files .bzip2: bzip2 -d file.bzip2