你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu中的xz命令使用

[日期:2012-04-18] 来源:Linux社区  作者:voice_shen [字体:大 中 小]

今天拿到一个包,后缀名为: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 
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
-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/>

最后根据帮助信息解压此文件。

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款