Ubuntu中的xz命令使用



Ubuntu中的xz命令使用
 
今天拿到一个包,后缀名为:xz
 
经查询,用xz-utils中的xz命令可以对其进行解压。
 
在ubuntu-11.04下面进行如下操作:
 
# aptitude search xz
 
得如下结果:
 
p xz-lzma - XZ-format compression utilities - compatibility commands 
p xz-utils - XZ-format compression utilities  www.2cto.com    
p xzdec - XZ-format compression utilities - tiny decompressors 
p xzgv - Picture viewer for X with a thumbnail-based selector 
p xzip - Interpreter of Infocom-format story-files 
p xzoom - magnify part of X display, with real-time updates
 
于是安装xz-utils
 
# sudo apt-get install xz-utils
 
完成后,查看帮助:
 
# xz --help
 
Usage: xz [OPTION]... [FILE]...
Compress or decompress FILEs in the .xz format.
 
-z, --compress force compression
-d, --decompress force decompression
-t, --test test compressed file integrity
-l, --list list information about .xz files
-k, --keep keep (don't delete) input files
-f, --force force overwrite of output file and (de)compress links
-c, --stdout write to standard output and don't delete input files
-0 ... -9 compression preset; default is 6; take compressor *and*
decompressor memory usage into account before using 7-9!
-e, --extreme try to improve compression ratio by using more CPU time;
does not affect decompressor memory requirements  www.2cto.com  
-q, --quiet suppress warnings; specify twice to suppress errors too
-v, --verbose be verbose; specify twice for even more verbose
-h, --help display this short help and exit
-H, --long-help display the long help (lists also the advanced options)
-V, --version display the version number and exit
 
With no FILE, or when FILE is -, read standard input.
 
Report bugs to <lasse.collin@tukaani.org> (in English or Finnish).
XZ Utils home page: <http://tukaani.org/xz/>
 
最后根据帮助信息解压此文件。

 
 
摘自 voice_shen的专栏

相关内容

    暂无相关文章