Linux zcat command explained
Introduction File compression plays an important role in the life of a system administrator and a generic operating system user as it helps us in saving disk space by allowing us to store more data within the same chunk of available storage media. The Linux operating system provides more than one utilities which allows us to compress files to save disk space. Some of the popular ones are zip, gzip and bzip. All these utilities are used to compress files with slight differences in the command line options they provide and also the level of compression they provide. The utilities which allow us to compress files also come with complimentary utilities to uncompress the files. But what if we find ourselves in a scenario wherein we need to view the contents of a file without extracting or uncompressing it? In such a situation we can use the zcat command to view the contents of the file without extracting it. In this article we will explain how we can make the best use of the zcat command with some practical examples. The zcat command should be available on your Linux distribution as part of the base installation. [root@linuxnix ~]# yum whatprovides zcat ----------------output truncated for brevity gzip-1.5-10.el7.x86_64 : The GNU data compression program Repo : base Matched from: Filename : /usr/bin/zcat Here is a description of the zcat command available...
Read More