Categories
Server

How to Create and Extract Tar.gz File in Linux

How to create tar.gz in Linux :

tar -zcvf "archive.tar.gz" "file.sql"
tar -zcvf "archive.tar.gz" "/home/example/public_html/"

How to extract tar.gz in Linux :

tar -zxvf "archive.tar.gz"

Leave a Reply

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