問題說明:
今天下載了一個nagios中文的包,名字nagios-cn-3.2.3.tar.bz2,即以tar.bz2結尾,經常解壓tar.gz
突然想不起來這個用什么命令來解壓了。百度了下,再次記錄下
操作過程:
1.通過tar命令的jxf進行解壓
[root@testvm02 ~]# ll total 9416 -rw-r--r-- 1 root root 9638175 Dec 26 14:38 nagios-cn-3.2.3.tar.bz2 [root@testvm02 ~]# tar -jxf nagios-cn-3.2.3.tar.bz2 [root@testvm02 ~]# ll total 9420 drwxr-xr-x 15 nagios nagios 4096 Oct 15 2010 nagios-cn-3.2.3 -rw-r--r-- 1 root root 9638175 Dec 26 14:38 nagios-cn-3.2.3.tar.bz2
備注:解壓成功。
tar命令幫助中關於 -j 參數的解釋:
[root@testvm02 ~]# tar --help | grep j conjunction with one of the subcommands --delete, -j, --bzip2 filter the archive through bzip2
小結:tar -jxf xx.tar.bz2 用這個方式來解壓該文件。
文檔創建時間:2018年12月26日15:43:01
