重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛
标题:
linux下通过zip软件创建zip文件
[打印本页]
作者:
郑全
时间:
2021-4-1 15:46
标题:
linux下通过zip软件创建zip文件
比如想把 /etc/目录下的所有文件打包成 etc.zip
# zip -r etc.zip /etc
如果想查看etc.zip
# unzip -l etc.zip
[root@localhost ~]# unzip -l etc.zip |more
Archive: 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/
作者:
郑全
时间:
2022-10-21 11:40
最好进到目录去创建压缩,比如进入到 $ORACLE_HOME
zip -r /tmp/grid.zip .
欢迎光临 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2