免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 10319 | 回复: 8
打印 上一主题 下一主题

[C] linux下将整个文件夹打包成zip该用什么命令啊?  关闭 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-20 13:40 |只看该作者 |倒序浏览
比如要打包文件夹 /test/log 成 packet.zip

论坛徽章:
5
狮子座
日期:2013-08-20 10:12:24午马
日期:2013-11-23 18:04:102015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之德黑兰石油
日期:2015-06-29 18:11:1115-16赛季CBA联赛之新疆
日期:2024-02-21 10:00:53
2 [报告]
发表于 2009-08-20 13:45 |只看该作者
starwing@starwing-desktop:~$ zip -?
Copyright (c) 1990-2006 Info-ZIP - Type 'zip "-L"' for software license.
Zip 2.32 (June 19th 2006). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
  The default action is to add or replace zipfile entries from list, which
  can include the special name - to compress standard input.
  If zipfile and list are omitted, zip compresses stdin to stdout.
  -f   freshen: only changed files  -u   update: only changed or new files
  -d   delete entries in zipfile    -m   move into zipfile (delete files)
  -r   recurse into directories     -j   junk (don't record) directory names
  -0   store only                   -l   convert LF to CR LF (-ll CR LF to LF)
  -1   compress faster              -9   compress better
  -q   quiet operation              -v   verbose operation/print version info
  -c   add one-line comments        -z   add zipfile comment
  -@   read names from stdin        -o   make zipfile as old as latest entry
  -x   exclude the following names  -i   include only the following names
  -F   fix zipfile (-FF try harder) -D   do not add directory entries
  -A   adjust self-extracting exe   -J   junk zipfile prefix (unzipsfx)
  -T   test zipfile integrity       -X   eXclude eXtra file attributes
  -y   store symbolic links as the link instead of the referenced file
  -R   PKZIP recursion (see manual)
  -e   encrypt                      -n   don't compress these suffixes

论坛徽章:
0
3 [报告]
发表于 2009-08-20 13:46 |只看该作者
tar

论坛徽章:
0
4 [报告]
发表于 2009-08-20 13:57 |只看该作者

zip 打包

我的板子用zip命令为什么找不到?是不是要装哪个东东?

/test/log # zip -?
/bin/sh: zip: not found

论坛徽章:
0
5 [报告]
发表于 2009-08-20 13:58 |只看该作者
你没有安装,自然没有

论坛徽章:
0
6 [报告]
发表于 2009-08-20 14:02 |只看该作者
安装啥?

论坛徽章:
0
7 [报告]
发表于 2009-08-20 14:58 |只看该作者
原帖由 herocsz 于 2009-8-20 14:02 发表
安装啥?



你好有吾性。。。。。。

论坛徽章:
0
8 [报告]
发表于 2009-08-20 14:59 |只看该作者
是啊,2 楼已经写得很清楚了,就是 Info-ZIP

论坛徽章:
0
9 [报告]
发表于 2009-08-20 15:02 |只看该作者
  不好意思,本人比较笨~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP