tar cvf archive file name[Files to archive]...
Just combine the files into one, and the capacity will increase as much as you put.
tar rvf archive file name[Files to archive]...
Add files to existing archive files. I don't compress this either.
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.
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···.
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