从别的服务器上copy 一个unzip 文件,修改权限和属性后,能找到unzip 文件,也出来unzip 的帮助,但就是不能解压文件..
解决过程如下:
[@more@]故障现象:
- copy 来的unzip 不能解压*.zip 文件,出现不能open XX.zip 的错误
解决方法:
- http://updates.oracle.com/unzips/unzips.html download 一个FOR 自己平台的unzip 安装文件
- 使用方法:
ncompress the file:
% uncompress unzip_
Put the file in a directory that is included in your PATH, typically /usr/bin or
/usr/local/bin.
Make sure that the file has execution permissions set. If not, run:
% chmod 751 unzip_
To unzip a file using this executable, just run:
% unzip_os
- unzip 自己带的help
UnZip 5.42 of 14 January 2001, by Info-ZIP. Maintained by C. Spieler. Send
bug reports to the authors at Zip-Bugs@lists.wku.edu; see README for details.
Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).
-p extract files to pipe, no messages -l list files (short format)
-f freshen existing files, create none -t test compressed archive data
-u update files, create if necessary -z display archive comment
-x exclude files that follow (in xlist) -d extract files into exdir
modifiers: -q quiet mode (-qq => quieter)
-n never overwrite existing files -a auto-convert any text files
-o overwrite files WITHOUT prompting -aa treat ALL files as text
-j junk paths (do not make directories) -v be verbose/print version info
-C match filenames case-insensitively -L make (some) names lowercase
-X restore UID/GID info -V retain VMS version numbers
Examples (see unzip.txt for more info):
unzip data1 -x joe => extract all files except joe from zipfile data1.zip
unzip -p foo | more => send contents of foo.zip via pipe into program more
unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
-M pipe through "more" pager
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7318139/viewspace-967983/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7318139/viewspace-967983/