导航:首页 > 程序命令 > zip命令打包

zip命令打包

发布时间:2022-01-30 17:18:45

A. linux zip压缩。压缩当前文件夹下所有文件,压缩为a.zip。命令行的方法是怎样。

linux zip压缩。压缩当前文件夹下所有文件,压缩为a.zip。可以使用命令zip -r mydata.zip dir。例如:

要压缩/home/data这个目录,则压缩命令为zip -q -r mydata.zip /home/data;

如果现在在/home 这个目录下,则命令是zip -q -r data.zip data;

如果在/home/data 这个目录下,则命令是zip -q -r data.zip * 。

(1)zip命令打包扩展阅读

linux zip压缩命令主要参数介绍:

1、-c:将解压缩的结果。

2、-l:显示压缩文件内所包含的文件。

3、-p:与-c参数类似,会将解压缩的结果显示到屏幕上,但不会执行任何的转换。

4、-t:检查压缩文件是否正确。

5、-u:与-f参数类似,但是除了更新现有的文件外,也会将压缩文件中的其它文件解压缩到目录中。

6、-v:执行是时显示详细的信息。

7、-z:仅显示压缩文件的备注文字。

8、-a:对文本文件进行必要的字符转换。

9、-b:不要对文本文件进行字符转换。

10、-C:压缩文件中的文件名称区分大小写。

B. 如何用bat命令把当前目录的所有文件和文件夹打包为一个zip

@echooff&title打包当前目录By依梦琴瑶

setWinRAR_Dir=%ProgramFiles%WinRAR

setPATH=%PATH%;%WinRAR_Dir%

WinRAR.exea-r"当前目录备份.zip"-rr-m5*-ibck
pause

C. 如何在Windows平台实现zip压缩命令

操作步骤如下:
1、打开winrar的安装文件夹,复制rar.exe到c:\windows文件夹下;
2、点击开始,点击运行,输入cmd,点击确定;
3、提示符后输入rar 1.zip c:\lizi,回车,该命令是将c:\lizi文件夹压缩为1.zip。

D. 如何使用rar在命令行下打包目录

这个问题本来很简单,因为多数站点主机都会安装winrar,如果你获得的shell能够运行exe文件,你就可以使用rar.exe这个命令行程序进行打包,rar的详细命令可以在winrar的安装目录里Rar.txt文件中找到,也许因为大家习惯了图形界面,忽略了这些命令,下面我就给大家一个打包例子,希望对大家能有点帮助. 例:把E:\web\目录下的所有东西打包为1.rar放到E:\web\目录下,以便下载 C:\Program Files\WinRAR\Rar.exe a -k -r -s -m1 E:\web\1.rar E:\web\参数说明: a 添加文件到压缩文件中 -k 锁定压缩文件 -s产生固体存档,这样可以增大压缩比 -r包括子目录 -m1 设置压缩比 -m0 存储 添加到压缩文件时不压缩文件。 -m1 最快 使用最快方式(低压缩) -m2 较快 使用快速压缩方式 -m3 标准 使用标准(默认)压缩方式 -m4 较好 使用较好压缩方式(较好压缩,但是慢) -m5 最好 使用最大压缩方式(最好的压缩,但是最慢)Sample Text

E. winzip命令行打包文件夹,要加什么参数,才能不包含文件夹的路径到zip中

应该不直接支持你说的功能,间接的办法是list一个文件表。不过你文件多了话还是没办法。你可以看网上的教程。

What command line parameters does WinZip support?

Below is some information about the undocumented command line options for using the WinZip program mole, winzip32.exe.

WinZip supports command line options to add and extract from files. Be sure to read the Notes section below for additional important information.
Adding Files

The command format is:

winzip32 [-min] action [options] filename[.zip] files

where:

-min specifies that WinZip should run minimized. If -min is specified, it must be the first command line parameter.

action
-a for add, -f for freshen, -u for update, and -m for move. You must specify one (and only one) of these actions. The actions correspond to the actions described in the section titled "Add dialog box options" in the online manual.

options
-r corresponds to the Include subfolders checkbox in the Add dialog and causes WinZip to add files from subfolders. Folder information is stored for files added from subfolders. If you add -p, WinZip will store folder information for all files added, not just for files from subfolders; the folder information will begin with the folder specified on the command line.

-ex, -en, -ef, -es, and -e0 determine the compression method: eXtra, Normal, Fast, Super fast, and no compression. The default is "Normal". -hs includes hidden and system files. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to use the full filename (including the folder).

files
Is a list of one or more files, or the @ character followed by the filename containing a list of files to add, one filename per line. Wildcards (e.g. *.bak) are allowed.
Extracting Files

The command format is:

winzip32 -e [options] filename[.zip] folder

where -e is required.

options
-o and -j stand for "Overwrite existing files without prompting" and "Junk pathnames", respectively. Unless -j is specified, folder information is used. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to specify the full filename (including the folder).

folder
Is the name of the folder to which the files are extracted. If the folder does not exist it is created.

Notes

* VERY IMPORTANT: always specify complete filenames, including the full folder name and drive letter, for all file IDs.

* To run WinZip in a minimized inactive icon use the "-min" option. When specified this option must be the first option.

* Only operations involving the built-in zip and unzip are supported.

* Enclose long filenames in quotes.

* When using a list ("@") file, no leading or trailing spaces should appear in file IDs in the list.

* The action and each option must be separated by at least one space.

* WinZip can be used to compress files with cc:Mail . Change the compress= line in the [cc:Mail] section of the appropriate WMAIL.INI files to specify the full path for WinZip followed by "-a %1 @%2". For example, if WinZip is installed in your c:\winzip folder, specify

compress=c:\winzip\winzip.exe -a %1 @%2

F. 如何用dos命令将档压缩成ZIP

那你安WINRAR或者WINZIP,我的机器上没有7Z,无法为你测试,我的批处理程序调用WINRAR进行数据压缩备份的语句如下,你可以参考:

e:
cd e:\mysql5.0.51a\data
del d:\backup\www\web.rar
"C:\Program Files\WinRAR\Rar.exe" a -m5 -s d:\backup\www\web.rar web

G. linux下将整个文件夹打包成zip该用什么命令

zip -r /usr/abc.zip

其中 -r 是为了将你的目录全部循环一遍 如果是单个文件就可以不加
另外如果要指定zip到哪里可以在后面加路径 空格 然后加上路径就好

H. linux zip命令。把当前文件夹下的多个文件夹、文件压缩为 bbb.zip,命令是什么

zip -r bbb.zip aaa bc.zip bbb

关键是 -r 选项:包含子目录。 (recurse 递归)

I. linux下,压缩ZIP文件,用命令怎么实现分包压缩

要将目录logs打包压缩并分割成多个1M的文件,可以用下面的命令:
tar cjf - logs/ |split -b 1m -
logs.tar.bz2.
完成后会产生下列文件:
logs.tar.bz2.aa, logs.tar.bz2.ab,
logs.tar.bz2.ac
要解压的时候只要执行下面的命令就可以了:
cat logs.tar.bz2.a* | tar xj

J. linux zip 压缩命令 解压命令 unzip

linux
zip命令的基本用法是:
zip
[参数]
[打包后的文件名]
[打包的目录路径]
linux
zip命令参数列表:
-a
将文件转成ASCII模式
-F
尝试修复损坏的压缩文件
-h
显示帮助界面
-m
将文件压缩之后,删除源文件
-n
特定字符串
不压缩具有特定字尾字符串的文件
-o
将压缩文件内的所有文件的最新变动时间设为压缩时候的时间
-q
安静模式,在压缩的时候不显示指令的执行过程
-r
将指定的目录下的所有子目录以及文件一起处理
-t
日期
把压缩文件的最后修改日期设为指定的日期,日期格式为mmddyyyy
举例:
将/home/Blinux/html/
这个目录下所有文件和文件夹打包为当前目录下的html.zip
zip
–q
–r
html.zip
/home/Blinux/html
上面的命令操作是将绝对地址的文件及文件夹进行压缩.以下给出压缩相对路径目录
比如目前在Bliux

阅读全文

与zip命令打包相关的资料

热点内容
php404页面代码 浏览:714
php唯一编号 浏览:597
硬盘文件夹没法打开 浏览:441
访问外网的svn服务器地址 浏览:876
想去自由行有什么好的app 浏览:212
视频监控数据库如何加密 浏览:759
解压直接能用的软件 浏览:709
服务器10ge网口是什么意思 浏览:860
travelboast安卓怎么设置路线 浏览:51
播放解压的图 浏览:228
新建一个名为hux的文件夹 浏览:532
桥水基金加密货币 浏览:196
还有什么好app 浏览:152
微软最惨的源码 浏览:41
上海灵意压缩机 浏览:415
泰拉瑞亚2020最新服务器ip地址 浏览:563
安卓机玩吃鸡什么画质 浏览:875
徒步缓解压力的视频 浏览:240
图像算法口诀 浏览:863
人踩什么解压 浏览:923