cli-tarHow do I use tar gzip to compress files at a specific level?
tar is a command line tool used to create, modify, and extract archives. gzip is a compression algorithm used to compress files. To use tar and gzip to compress files at a specific level, you can use the following command:
tar -zcvf archive-name.tar.gz -C /path/to/files level
tar: command to create and modify archives-z: flag to compress the archive using gzip-c: flag to create an archive-v: flag to enable verbose output-f: flag to specify the name of the archive-C: flag to specify the directory to archivelevel: the compression level (1-9)
This command will create an archive named archive-name.tar.gz in the current directory, and compress the files in the /path/to/files directory at the specified compression level.
Helpful links
More of Cli Tar
- How do I use the command line to tar and zip files?
- How can I use tar commands to zip a file?
- How do I use the shell to tar and zip files?
- How do I use the Unix tar zip command?
- How do I create a tar.zip file in Unix?
- How do I use the command line to tar and zip a file?
- How do I use the command line to tar and zip a file?
- How do I use gzip, tar, and zip to compress files?
- How do I use the command line to tar and distribute files?
- How do I use the command line to tar and zip a file?
See more codes...