
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 !!!



One Trackback
[...] 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 [...]