Bích Ngọc
Member
How do I tar and gzip a folder?
Answer
Create and extract a .tar.gz archive using command line
Answer
Create and extract a .tar.gz archive using command line
- 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.
- To extract a tar.gz compressed archive you can use the following command. tar -zxvf tar-archive-name.tar.gz.
- To Preserve permissions. …
- Switch the ‘c’ flag to an ‘x’ to extract (uncompress).