How to view compressed log file in bzip format

bzip2-logo


This 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 compressed file in bzip2 format instead :



bzcat <.tar.bz2 or .bz2 compressed file>

e.g.

bzcat logfile.tar.bz2


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

e.g.

bzcat logfile.tar.bz2 | less


Alternatively, use the “bzless” command. It will also pause every screen full.

bzless <.tar.bz2 or .bz2 compressed file>

e.g.

bzless logfile.tar.bz2


Ciao !!!

More post - related

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

One Trackback

  1. By bz2 - StartTags.com on January 24, 2010 at 07:13

    [...] doesn't compile either. PyPy's rctypes has some limitations in structures and function pointers. …How to view compressed log file in bzip format | Scratching …This post is similar to the previous one talking about how to view a log file compressed in gnuzip [...]

Post a Comment

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

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