Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2043427
  • 博文数量: 519
  • 博客积分: 10070
  • 博客等级: 上将
  • 技术积分: 3985
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-29 14:05
个人简介

只问耕耘

文章分类

全部博文(519)

文章存档

2016年(1)

2013年(5)

2011年(46)

2010年(220)

2009年(51)

2008年(39)

2007年(141)

2006年(16)

我的朋友

分类: LINUX

2010-08-17 14:58:14

To create a zip file, at the Unix prompt, enter:
  zip filename inputfile1 inputfile2
Replace filename with the name you want to give the zip file. The .zip extension is automatically appended to the end of the filename. Replace inputfile1 and inputfile2 with the names of the files you wish to include in the zip archive. You can include any number of files here, or you may use an asterisk (*) to include all files in the current directory.
To include the contents of a directory or directories in a zip archive, use the  -r  flag:
  zip -r filename directory
Replace directory with the name of the directory you want to include. This will create the archive filename.zip that contains the files and subdirectories of directory.
Files created by zip can normally be decoded by programs such as WinZip and StuffIt Expander.
To decompress a zip file in Unix, use the unzip command. At the Unix prompt, enter:
  unzip filename
Replace filename with the name of the zip archive.
For more information about zip and unzip, see their manual pages:
  man zip
  man unzip
阅读(751) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~