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.
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 |
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 |
https://www.atmarkit.co.jp/ait/articles/1608/15/news015.html
Recommended Posts