cli-tarHow do I use shell tiki tar to compress files?
Shell tiki tar is a command line utility that can be used to compress and archive files. To use it, the tar command must be followed by the -czvf option and the name of the archive. The -c option tells tar to create an archive, the -z option tells tar to compress the archive with gzip, the -v option tells tar to display progress information, and the -f option tells tar to use the following argument as the archive filename.
For example, to compress all the files in the current directory into an archive named myfiles.tar.gz, the following command can be used:
tar -czvf myfiles.tar.gz *
The command above will create a compressed archive named myfiles.tar.gz that contains all the files in the current directory.
The following list explains each option used in the command above:
-c: tells tar to create an archive-z: tells tar to compress the archive with gzip-v: tells tar to display progress information-f: tells tar to use the following argument as the archive filename
For more information about using tar, please refer to the following links:
More of Cli Tar
- How do I use the command line to tar and zip a file?
- How do I choose between gzip and tar.gz when compressing files?
- How do I use the shell to tar and zip files?
- How can I track the progress of a Unix tar operation?
- How can I use the CLI to yield a tar file?
- How do I use the Unix tar xvf command?
- How do I use tar commands with xz?
- How do I use the tar command on Windows?
- How can I use the tar command in Unix to create archives in quiet mode?
- How do I open a .tar.gz file using the command line?
See more codes...