![]() |
新闻中心
当前位置:网站首页 > 新闻中心
云服务器怎么压缩文件
云服务器怎么压缩文件?在云服务器系统中,压缩文件经常用到zip 命令,“.zip”格式文件是 Windows 和 Linux 系统都通用的压缩文件类型,属于几种主流的压缩格式(zip、rar等)之一,是一种简单的分别压缩每个文件的存储格式。
zip 命令类似于 Windows 系统中的 winzip 压缩程序,其基本格式如下:
[root@localhost ~]#zip [选项] 压缩包名 源文件或源目录列表
注意,zip 压缩命令需要手工指定压缩之后的压缩包名,注意写清楚扩展名,以便解压缩时使用。
zip 命令的基本使用
[root@localhost ~]# zip ana.zip anaconda-ks.cfgadding: anaconda-ks.cfg (deflated 37%)#压缩[root@localhost ~]# ll ana.zip-rw-rr 1 root root 935 6月 1716:00 ana.zip#压缩文件生成
不仅如此,所有的压缩命令都可以同时压缩多个文件,例如:
[root@localhost ~]# zip test.zip install.log install.log.syslogadding: install.log (deflated 72%)adding: install.log.syslog (deflated 85%)#同时压缩多个文件到test.zip压缩包中[root@localhost ~]#ll test.zip-rw-rr 1 root root 8368 6月 1716:03 test.zip#压缩文件生成
飞帆软件云服务器简单易用,稳定可靠,主机vCPU、内存各项性能指标业界领先,满足不断变化的用户需求。云服务器产品链接 http://www.zbff.com?/cloudhost/
上一篇 linux云服务器性能怎样 下一篇 中国十大虚拟主机
|