167
152

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Linux tar.gz tar 圧縮 解凍

Last updated at Posted at 2018-05-13

いつも思い出せないtar.gzのメモ。
Windowsでtar.gzを扱うのが面倒なときのためにtarも追加。

tar gz

圧縮

tar.gzの場合

tar -zcvf filename.tar.gz directoryname

tarの場合

tar -cvf filename.tar directoryname

解凍

tar.gzの場合

tar -zxvf filename.tar.gz

tarの場合

tar -xvf filename.tar

オプション

option full name mean
-z --gzip gzip形式であることを指定
-c --create 新しく圧縮ファイルをつくる
-v --verbose 処理結果を出力
-f --file 圧縮ファイルの名前
-x --extract 圧縮ファイルからファイルを取り出す

詳しくはこの辺↓を参考に。
http://www.atmarkit.co.jp/ait/articles/1608/15/news015.html

167
152
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
167
152

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?