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