linux命令里的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

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 (in English or Finnish).

XZ Utils home page:

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

0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值