Professional Documents
Culture Documents
Presentation On
Presentation On
COMPRESSION &
DECOMPRESSION
IN LINUX.
2) Gzip
3) Bzip2
Decompression
2) Gzip
3) Bzip2
Tar Compression
We cannot compress the directories directly from
bzip2 or gzip. So, here tar helps us to further
decompress these directories .
For e.g:-
# tar –zxvf /etc.tar.gz /etc.tar
Bzip2 Compression
One can directly compress files using bzip2 but like
gzip if anyone wants to compress
folders/directories he/she needs to convert that into
tar first.
Command used to compress files using bzip:-
# tar –jcvf (file/folder name.tar.bzip2) (file/folder
name+.tar)
For eg:-
# tar –jcvf /etc.tar.bzip2 /etc.tar
Bzip2 Decompression
Command used to decompress bzip2 files/folders
using tar:-