win7下整个目录压缩为后缀为.zip的格式,通过ftp上传到服务器。
更多选项中文说明链接http://www.cnblogs.com/lucyjiayou/archive/2011/12/25/2301046.html
linux 查看命令 man unzip
整个文件夹解压
unzip 名.zip
1.如果文件夹为空直接解压进去
unzip easyProc.zip
Archive: easyProc.zip
inflating: easyProc/Makefile
inflating: easyProc/mypc.pc
inflating: easyProc/pcmain.c
inflating: easyProc/ph.h
2.如果文件夹里面和解压项内有同名文件有内会有选项 y覆盖 n不覆盖 A全部同名都覆盖 N所有同名都不覆盖 r重命名(注大小写有区别)
unzip easyProc.zip
Archive: easyProc.zip
replace easyProc/Makefile? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: easyProc/Makefile
replace easyProc/mypc.pc? [y]es, [n]o, [A]ll, [N]one, [r]ename: a
error: invalid response [a]
replace easyProc/mypc.pc? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: easyProc/mypc.pc
inflating: easyProc/pcmain.c
inflating: easyProc/ph.h
**************************************************
同名直接覆盖
unzip -v 名.zip
unzip -v easyProc.zip
Archive: easyProc.zip
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
0 Stored 0 0% 09-06-16 16:03 00000000 easyProc/
700 Defl:N 433 38% 09-06-16 15:21 1fde40b4 easyProc/Makefile
4434 Defl:N 1452 67% 09-06-16 15:50 68411f4c easyProc/mypc.pc
339 Defl:N 207 39% 09-06-16 14:53 0a10a3d7 easyProc/pcmain.c
2105 Defl:N 671 68% 09-06-16 14:51 22e815f9 easyProc/ph.h
-------- ------- --- -------
7578 2763 64% 5 files