AIX 上unzip 使用

zhulch發表於2007-09-05

從別的伺服器上copy 一個unzip 檔案,修改許可權和屬性後,能找到unzip 檔案,也出來unzip 的幫助,但就是不能解壓檔案..

解決過程如下:

[@more@]

故障現象:

- copy 來的unzip 不能解壓*.zip 檔案,出現不能open XX.zip 的錯誤

解決方法:

- 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 ; 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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章