[Linux] tar.gz compression / decompression command

Introduction

When I touched the Linux environment for the first time in a while, I forgot the compression / decompression command, so make a note of it.

Compression command

tar acvf [compressed file name].tar.gz [Compression target]
Short option Long option meaning
-a --auto-compress Compress in the format according to the extension
-c --create Create a new compressed file
-v --verbose Output processing file details
-f --file Specify the compressed file name

Unzip command

tar xvf [compressed file name].tar.gz
Short option Long option meaning
-x --extract Extract files from compressed files
-v --verbose Output processing file details
-f --file Specify the compressed file name

reference

https://www.atmarkit.co.jp/ait/articles/1608/15/news015.html

Recommended Posts

[Linux] tar.gz compression / decompression command
Linux command # 3
Linux command # 5
Linux command list
linux at command
[Linux] Search command
Linux command <Basic 2>
Linux [directory command]
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
[Basic] linux command
Linux [shell command]
[Linux] Command / Knowledge
My linux command
Linux command <Basic 1>
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Linux (command memory)
[Linux] Volume configuration command
Linux command cheat sheet
Linux command (sequential update)
Linux basic command memorandum
Linux command [File operation]
[Linux] Basic command summary
Linux command for self-collection
linux command error collection 1
Linux command line shortcut
Compression / decompression of zipfile
linux sar command CPU usage
What is Linux? [Command list]
Easy df command on Linux
Linux tar xz command memo
Linux Command Dictionary (for myself)
linux: create original Terminal command
[Note] Useful linux command collection
Linux command memorandum [for beginners]
Linux PC spec check command
[Linux] User / group command summary
[Infrastructure] Linux command, shell script collection
Command to create Linux Live USB
[Linux] Accelerate compression processing using pigz
[Linux] OS recovery with restore command
Completion of docker command on Linux
[Linux convenient command] Try inserting csview
Permission and ownership change command [Linux]
Linux archiving and compression (tar and gzip)
LINUX command [wc edition] Usage example
Linux command [ldconfig] LPIC learning memo
[linux] kill command to kill the process
[Linux convenient command] Try inserting bat
Linux command 16 procedure manual folder (completed)
Linux command (basic in basic) personal memo