0
0

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 5 years have passed since last update.

tar.gzに関するコマンド簡易メモ

Last updated at Posted at 2019-11-12

.tar.gzに関するコマンドについてメモっとく

忘れがちなので...

tar

ファイルをまとめる

tar -cf archive.tar file1 file2 
  #file1とfile2からarchive.tarを作成

ファイルを取り出す

tar -xf archive.tar
  #archive.tarからファイルを取り出す

ファイルの中身を見る

tar -tf archive.tar
  #gzipで圧縮済みのアーカイブでも問題なし

gzip

gzipで圧縮

gzip archive.tar

gzipを解凍

gunzip archive.tar.gz
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?