gunzipコマンドの説明します。

説明

gunzipは圧縮ファイルを解凍するコマンドです。

使い方:gunzip [ ファイル名 ]
読み方:ジーアンジップ
  略:GNU's not Unix!! unzip

具体例

# ■■■ 1.事前準備
# 作業ディレクトリ作成
[root@CE08PRD101 ~]# mkdir -p /work/gunzip;cd /work/gunzip;pwd
/work/gunzip

# テストファイル作成
[root@CE08PRD101 gunzip]# dd if=/dev/zero of=test.txt bs=1M count=1

# ファイルを圧縮
[root@CE08PRD101 gunzip]# gzip test.txt

# 圧縮ファイルの確認
[root@CE08PRD101 gunzip]# ll -h
合計 4.0K
-rw-r--r-- 1 root root 1.1K 9月 26 20:33 test.txt.gz

# ■■■ 2.圧縮ファイルの解凍
[root@CE08PRD101 gunzip]# gunzip test.txt.gz

# ■■■ 3.事後確認
# ファイルが解凍されたことを確認
[root@CE08PRD101 gunzip]# ll -h
合計 1.0M
-rw-r--r-- 1 root root 1.0M 9月 26 20:33 test.txt

# 作業ディレクトリ削除
[root@CE08PRD101 gunzip]# cd ../;rm -fr gunzip