比如想把/etc/目录下的所有文件打包成etc.zip#zip-retc.zip/etc如果想查看etc.zip#unzip-letc.zip[root@localhost~]#unzip-letc.zip|moreArchive:etc.zipLengthDateTimeName----------------------------004-01-202123:18etc/279704-01-2

比如想把 /etc/目录下的所有文件打包成 etc.zip# zip -r etc.zip /etc如果想查看etc.zip# unzip -l etc.zip[root@localhost ~]# unzip -l etc.zip |moreArchive: etc.zip Length Date Time Name--------- ---------- ----- ---- 0 04-01-2021 23:18 etc/ 2797 04-01-2021 23:44 etc/mtab 579 04-01-2021 22:38 etc/fstab 0 04-01-2021 22:38 etc/crypttab 0 04-01-2021 22:39 etc/dnf/
