[root@test test]# touch 1.txt 2.txt 3.txt
[root@test test]# zip -r test.zip ./*
[root@test test]# unzip -l test.zip // 查看压缩包内的文件(简略模式)
[root@test test]# unzip -v test.zip // 查看压缩包内的文件(详细模式)
[root@test test]# zip -m test.zip ./4.txt // test.zip中添加4.txt文件
[root@test test]# zip -d test.zip 4.txt // 删除压缩文件中4.txt文件
[root@test test]# unzip -o -d /home/www/ test.zip // 把test.zip文件解压到/home/www/
常用 zip 压缩命令
最新推荐文章于 2025-01-10 18:58:39 发布