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?

tar.gz ファイルの解凍・圧縮方法

Posted at

はじめに

tar.gzファイルを解凍して中身を確認したかったが、7zipやWindowsの標準機能で扱うことができず
解凍や圧縮に困ったので手順を記載する

手順

tarコマンドを使ってコマンドプロンプトで解凍・圧縮する
【実行ファイルパス】C:\Windows\System32\tar.exe

解凍コマンド

tar -xvzf (tarファイルのパス)

圧縮コマンド

tar -cvzf (tarファイルのパス) (対象ディレクトリ)

オプションの説明

オプション 説明
-c 新しいアーカイブを作成する
-r 既存のアーカイブにファイルを追加する
-t アーカイブ内のファイルを一覧表示する
-u アーカイブ内のファイルを更新する(既存のファイルのみ)
-x アーカイブからファイルを展開する
-f アーカイブファイルを指定する
-v 詳細な情報を表示する
-z gzipで圧縮する
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?