3. bzip2
Format for zipping the files: bzip2
—————————–OUTPUT——————————————————-
[root@kalwa2 zip_test]# ll
total 12
-rw-r–r–. 1 root root 221 Jun 14 09:02 test1.txt
-rw-r–r–. 1 root root 221 Jun 14 09:02 test2.txt
-rw-r–r–. 1 root root 221 Jun 14 09:03 test3.txt
[root@kalwa2 zip_test]# bzip2 test1.txt test2.txt test3.txt
[root@kalwa2 zip_test]# ll
total 12
-rw-r–r–. 1 root root 66 Jun 14 09:02 test1.txt.bz2
-rw-r–r–. 1 root root 66 Jun 14 09:02 test2.txt.bz2
-rw-r–r–. 1 root root 66 Jun 14 09:03 test3.txt.bz2
—————————–END OF OUTPUT———————————————
Format for BUNzipping the files: bunzip2 .bz2
—————————–OUTPUT——————————————————-
[root@kalwa2 zip_test]# ll
total 12
-rw-r–r–. 1 root root 66 Jun 14 09:02 test1.txt.bz2
-rw-r–r–. 1 root root 66 Jun 14 09:02 test2.txt.bz2
-rw-r–r–. 1 root root 66 Jun 14 09:03 test3.txt.bz2
[root@kalwa2 zip_test]# bunzip2 test1.txt.bz2
[root@kalwa2 zip_test]# ll
total 12
-rw-r–r–. 1 root root 221 Jun 14 09:02 test1.txt
-rw-r–r–. 1 root root 66 Jun 14 09:02 test2.txt.bz2
-rw-r–r–. 1 root root 66 Jun 14 09:03 test3.txt.bz2
[root@kalwa2 zip_test]# bunzip2 test2.txt.bz2 test3.txt.bz2
[root@kalwa2 zip_test]# ll
total 12
-rw-r–r–. 1 root root 221 Jun 14 09:02 test1.txt
-rw-r–r–. 1 root root 221 Jun 14 09:02 test2.txt
-rw-r–r–. 1 root root 221 Jun 14 09:03 test3.txt
[root@kalwa2 zip_test]#
—————————–END OF OUTPUT———————————————
Leave a Reply