How to compress with the linux 'tar' command

To compress a directory, I use:

tar -czvf foo.tar.gz foo

where foo is the name of the directory. (the options used: compress, gzip, verbose, file=foo)

To decompress the file, I use:

tar -xzvf foo.tar.gz

which creates a directory called foo with the files I compressed. (with option: extract)

For more information, see this useful page.

Comments

Leave a comment

What color are green eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.