Frequently used (personally) notes on the tar command

File archive (new archive)

tar cvf archive file name[Files to archive]...

Just combine the files into one, and the capacity will increase as much as you put.

File archive (addition to existing archive)

tar rvf archive file name[Files to archive]...

Add files to existing archive files. I don't compress this either.

File archive (new archive / compression)

tar czvf archive file name[Files to archive]...

Combine files into one (tar) and compress (gzip). If you create a library with this, you cannot add it with option -r. However, since the capacity is reduced, this is better for long-term and immutable storage.

Extracting the archive file

tar xvf archive file name

I need one option to compress it, but for some reason this command decompresses both tar (uncompressed) and tar.gz (compressed). why···.

Finally

You don't need the -v option if you just want to process it. Well, it's kind of like Omaginai.

It is an old battlefield from today.

Recommended Posts

Frequently used (personally) notes on the tar command
Notes on python personally used things (input, trigonometric functions, logarithms)
Notes on using matplotlib on the server
Notes on installing Ubuntu 18.04 on the XPS 15 7590
Python standard module that can be used on the command line
Keep getting RSS on the command line
Status check command used (sometimes) on linux
Notes on using OpenCL on Linux on the RX6800
The --security option cannot be used with the dnf command on CentOS Linux
You search commandlinefu on the command line
Linux command line shortcut
Frequently used (personally) notes on the tar command
Summary of tools used in Command Line vol.8
Summary of tools used in Command Line vol.5
[Linux command] A memorandum of frequently used commands
pyenv Frequently used commands
Command line introductory notes
Frequently used tmux commands
Frequently used Linux commands
Frequently used Linux commands
Frequently used linux commands
Frequently used pip commands
Correspondence memo when the direction key cannot be used on the python command line
Quickly display the QR code on the command line
Arduino development on the command line: vim + platformio
Syntax highlighting on the command line using Pygments
Convert XLSX to CSV on the command line
Operate Route53 on the command line using AWS-CLI.
[Linux command] A memorandum of frequently used commands
Think about the selective interface on the command line
The problem that the ifconfig command cannot be used
Notes on Flask
Python note: When the pip command cannot be used
Notes on transactions in the Java client library in the datastore
Note the frequently used options in Python + Selenium + Chrome
Execute the command on the web server and display the result
Miscellaneous notes about deploying the django app on Heroku
Display a list of frequently used commands on Zsh