How to view a compressed log file in gnuzip format

gzip-logo


Log files are generally compressed, to save disk space. But it can be quite a hassle if we are to uncompressed one by one to just browse through them. There is a utility / command that will make our life easier :



gzcat <tar.gz or .gz compressed file>

e.g.

gzcat text.tar.gz


If the log file is more then a screen full, use less to pause every screen full.

e.g.

gzcat text.tar.gz | less


Alternatively, use “zless“. It would also pause every screen full

zless <tar.gz or .gz compressed file>

e.g.

zless text.tar.gz


Hasta la vista !!!

More post - related

Please sponsor my coffee if you find my posts worth reading, thanks!

One Trackback

  1. [...] post is similar to the previous one talking about how to view a log file compressed in gnuzip format. Below is the command to view [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
-->
Improve the web with Nofollow Reciprocity.