A quick blog entry post.
Here's how to view text files compressed by linux command bzip2. If you wish to know more command usage of bzip2 binary, click here.
Viewing of bzipped compressed files can be done in many ways. This blog entry would cover doing this approach by using bzcat, bzmore and bzless linux binaries. Bzcat, bzmore and bzless binaries are part of bzip2 rpm package.
Bzcat command functions to view bzipped compressed text file and show them to stdout. Bzmore and bzless acts similarly the same but shows viewing of bzipped files screen updates and pauses at a time.. Bzless clears the screen first and views bzipped file one screen at a time or one bzipped file at a time which is the reverse of bzmore. Both Bzmore and bzless commands process and view compressed text files interactively. Interactive keyboard commands are much more similar to more and less linux binaries.
BzCat, BzMore, and BzLess Command Usage
Supposed that you have a large compressed (bzipped) text file and you wish to view it on the fly from your current session terminal without actually bunzipping them, these bz viewer binaries could come quite handy. Standard linux output can also be passed as a standard parameter with these bz viewers. Avoid using these bz viewers from bzipped binary files.
How to view BZipped compressed files?
Viewing bzipped files requires file input parameter. These parameter can be in a file blog format like shown below.
Sample bzcat, bzmore, bzless usage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# bzmore testfile.txt.bz2
# bzmore *.bz2
# bzless testfile.txt.bz2
# bzless *.bz2
# bzcat testfile.txt.bz2
# bzcat *.bz2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTH
Subscription
Categories
- HowTos (612)
- Linux Devices (40)
- Linux Diggs (620)
- Linux News (1541)
- Linux Videos (24)
Recent Posts
Blog Archive
-
▼
2007
(340)
-
▼
December
(38)
- Holiday Linux
- HowTo: Chikka messenger over GAIM Pidgin Messenger
- HowTo: Rename Multiple Files Without A Script
- HowTo: KDocker/AllTray - System Tray Docking
- HowTo: Thunderbird - News/Feed Reader
- HowTo: ThinFeeder - RSS/RDF/Atom Aggregator
- HowTo: Sage - Firefox Feed Reader Extension
- HowTo: Snownews - RSS/RDF Newsreader
- HowTo: Planet - RDF/RSS/Atom Feed Aggregator
- HowTo: Liferea - RSS/RDF Feed Reader
- HowTo: Blam - RSS/RDF Feed Reader
- Switching Hospital Systems to Linux
- HowTo: CSS Editor and Validator Install
- HowTo: Ebook Reader Install
- vertito's blogspot anniversary
- HowTo: Install 113 Amazing Fedora Games Part 8
- HowTo: Install 113 Amazing Fedora Games Part 7
- HowTo: Install 113 Amazing Fedora Games Part 6
- HowTo: Install 113 Amazing Fedora Games Part 3
- HowTo: Install 113 Amazing Fedora Games Part 2
- HowTo: Thunar File Manager
- HowTo: LeafPad Extremely Fast Text File Editor
- HowTo: View Bzipped file On-The-Fly
- HowTo: TuxPaint Drawing Program Installation
- HowTo: InkScape Drawing Program Installation
- HowTo: Adobe Flash Player on Fedora 8
- HowTo: Install Digital Comic Reader
- HowTo: Install 113 Amazing Fedora Games
- HowTo: Translate Find Statements to Perl Codes
- HowTo: Single Step VirtualBox Installation on Fedo...
- CLI Tip: Control Terminal Keystroke Combinations
- CLI Tip: Clearing Terminal Screen
- HowTo: Linux Aliasing Aliases
- HowTo: Move Multiple Files Recursively
- HowTo: Rename multiple files recursively
- HowTo: Strip Non-Directory Path Suffix from FileName
- HowTo: Generate Pronounceable Random Passwords
- HowTo: Determine RedHat and Fedora release version
-
▼
December
(38)
Wednesday, December 5, 2007
HowTo: View Bzipped file On-The-Fly
Subscribe to:
Post Comments (Atom)
ILoveTux - howtos and news | About | Contact | TOS | Policy
0 comments:
Post a Comment