How do I tar and gzip a folder?

How do I tar and gzip a folder?
Answer
Create and extract a .tar.gz archive using command line
  1. To create a tar.gz archive from a given folder you can use the following command. tar -zcvf tar-archive-name.tar.gz source-folder-name.
  2. To extract a tar.gz compressed archive you can use the following command. tar -zxvf tar-archive-name.tar.gz.
  3. To Preserve permissions. …
  4. Switch the ‘c’ flag to an ‘x’ to extract (uncompress).
 

Tìm kiếm

Back
Top