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 command line to tar and zip files?
- How do I use the command line to tar and zip a file?
- How do I use the shell to tar and zip files?
- How can I use tar commands to zip a file?
- How do I use the Unix tar zip command?
- How do I use the command line to tar and distribute files?
- How do I use gzip, tar, and zip to compress files?
- How do I use the command line to tar and zip a file?
- How do I create a tar.zip file in Unix?
- How do I use the command line to tar and zip a file?
See more codes...