二十一. zip压缩和解压缩
[root@VM_0_15_centos test]# ls
son2 son3 target
[root@VM_0_15_centos test]# zip -r test_package son2 son3 target
adding: son2/ (stored 0%)
adding: son2/a/ (stored 0%)
adding: son2/a/bye.txt (stored 0%)
adding: son2/a/hello.txt (stored 0%)
adding: son2/son/ (stored 0%)
adding: son2/son/hello.txt (stored 0%)
adding: son3/ (stored 0%)
adding: son3/hello.txt (stored 0%)
adding: target (stored 0%)
[root@VM_0_15_centos test]# ls
son2 son3 target test_package.zip
[root@VM_0_15_centos test]# unzip test_package.zip
Archive: test_package.zip
replace son2/a/bye.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
extracting: son2/a/bye.txt
extracting: son2/a/hello.txt
extracting: son2/son/hello.txt
extracting: son3/hello.txt
extracting: target
[root@VM_0_15_centos test]# ls
son2 son3 target test_package.zip
二十二. 学习目标
二十三. 作业(略)
二十四. 软件安装和卸载
二十五. vim简介(略)