歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu中的xz命令使用

Ubuntu中的xz命令使用

日期:2017/2/28 15:53:01   编辑:Linux教程

今天拿到一個包,後綴名為: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 <[email protected]> (in English or Finnish).
XZ Utils home page: <http://tukaani.org/xz/>

最後根據幫助信息解壓此文件。

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved