Categories
Blog

Compress and extract tar.gz files

A very simple reference for compressing/extracting tar.gz files, which I always forget how to do.

Compress

tar -czvf backup.tar.gz /webapps/myapp/

Extract

tar -xzvf backup.tar.gz

Original source: https://www.howtogeek.com/248780/how-to-compress-and-extract-files-using-the-tar-command-on-linux/

Leave a Reply

Your email address will not be published. Required fields are marked *