cli-tarHow do I use the command line to create a tar.gz file?
To create a tar.gz file using the command line, the following command can be used:
tar -czvf <file_name>.tar.gz <file_name>
The parts of the command are as follows:
tar: The command used to create a tar file-czvf: Options used to create a tar file in gzip format with verbose output<file_name>.tar.gz: The name of the output tar file<file_name>: The name of the file to be compressed
The output of the command will be the newly created tar.gz file.
For more information, see the GNU Tar Manual.
More of Cli Tar
- How do I use the Unix tar zip command?
- How do I use the Unix tar xvf command to extract files?
- How do I extract files from a tar archive using the cmd command?
- How do I use the Unix tar xzvf command?
- How do I create a tar.gz file using the command line?
- How do I use the Unix tar xvf command?
- How do I use the command line to tar and distribute files?
- How do I use tar commands with xz?
- How can I use gzip to compress a file without using tar?
- How can I use tar commands to zip a file?
See more codes...