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