2. gzip
Format for zipping the files: gzip
—————————–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]# gzip test1.txt test2.txt test3.txt
[root@kalwa2 zip_test]# ll
total 12
-rw-r–r–. 1 root root 45 Jun 14 09:02 test1.txt.gz
-rw-r–r–. 1 root root 45 Jun 14 09:02 test2.txt.gz
-rw-r–r–. 1 root root 45 Jun 14 09:03 test3.txt.gz
[root@kalwa2 zip_test]#
—————————–END OF OUTPUT———————————————
Format for GUNzipping the files: gunzip .gz
—————————–OUTPUT——————————————————-
[root@kalwa2 zip_test]# ll
total 12
-rw-r–r–. 1 root root 45 Jun 14 09:02 test1.txt.gz
-rw-r–r–. 1 root root 45 Jun 14 09:02 test2.txt.gz
-rw-r–r–. 1 root root 45 Jun 14 09:03 test3.txt.gz
[root@kalwa2 zip_test]# gunzip test1.txt.gz
[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 45 Jun 14 09:02 test2.txt.gz
-rw-r–r–. 1 root root 45 Jun 14 09:03 test3.txt.gz
[root@kalwa2 zip_test]# gunzip test2.txt.gz test3.txt.gz
[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