bunzip2コマンドの説明します。
説明
bunzip2は圧縮ファイルを解凍するコマンドです。
使い方:bunzip2 [ ファイル名 ]
読み方:ビーアンジップツー
略:Burrows–Wheeler unzip 2
具体例
# ■■■ 1.事前準備
# 作業ディレクトリ作成
[root@CE08PRD101 ~]# mkdir -p /work/bunzip2;cd /work/bunzip2;pwd
/work/bunzip2
# テストファイル作成
[root@CE08PRD101 bunzip2]# dd if=/dev/zero of=test.txt bs=1M count=1
# ファイルを圧縮
[root@CE08PRD101 bunzip2]# bzip2 test.txt
# 圧縮ファイルの確認
[root@CE08PRD101 bunzip2]# ll
合計 4
-rw-r--r-- 1 root root 45 9月 26 00:53 test.txt.bz2
# ■■■ 2.圧縮ファイルの解凍
[root@CE08PRD101 bunzip2]# bunzip2 test.txt.bz2
# ■■■ 3.事後確認
# ファイルが解凍されたことを確認
[root@CE08PRD101 bunzip2]# ll -h
合計 1024
-rw-r--r-- 1 root root 1048576 9月 26 00:53 test.txt
# 作業ディレクトリ削除
[root@CE08PRD101 bunzip2]# cd ../;rm -fr bunzip2