Utilities to compress and uncompress files in Linux
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
Utilities to compress and uncompress files in Linux
Rating:
In this article, it is intended to discuss the following utilities that are used to compress and uncompress files in Linux:
- TAR
- GZIP & GUNZIP
- BZIP2 & BUNZIP2
The TAR (Tape Archive) utility was originally designed for tape backups. It is used to create a TAR file anywhere on the filesystem. The
Some important switches used with the
| X | It is used to extract the contents of a TAR file. |
| C | It is used to create a TAR file. |
| Z | It is used to uncompress a compressed TAR file before extracting. |
| v | It is used to display the contents while creating a TAR file or extracting from it. |
| t | It is used to list all the contents of a TAR file. |
where <filename.txt> is the name of the file to be compressed.
After using the command, a file named filename.txt.gz will be created. By default, the
where <filename.txt.gz> is the name of the file to be uncompressed.
After using the command, a file named filename.txt will be created. By default, the
where <filename.txt> is the name of the file to be compressed.
After using the command, a file named filename.txt.bz2 will be created. By default, the
where <filename.txt.bz2> is the name of the file to be uncompressed.
After using the command, a file named filename.txt will be created. By default, the
Rating:
Was this information helpful?
Other articles
- What is KILLALL command?
- What is UMASK command?
- What is USERADD command?
- What is run level?
- What is Sendmail?