[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Reading Debian Documentation - Newbie ?



Fredderic wrote:
On Fri, 10 Oct 2003 18:00:52 +0200, Kim Eik wrote:



Have a file named, /usr/share/doc/exim4-base/README.Debian.gz
How do I access and read this file?

gunzip /usr/share/doc/exim4-base/README.Debian.gz
and then open de file created.

apt-get install less
instead of unpacking the file.. do:
zless /usr/share/doc/exim4-base/README.Debian.gz


Actually, as long as lesspipe/lessopen is set up, you don't even need that
"z" on the front, so long as the filename ends in .gz .

'less' for me at least, will open gz'd files, even let me see a list of
what's stored inside tgz's and tar.gz's, and same for arj's, deb's, shows
me info about an image in a number of image formats, lzh's, it can view
pdf's as text, rar's, rpm's, jar's, zip's, and zoo's, and a few others I
skipped over for brevity.


Less with mime-type handling is cool. zless is also cool. If you don't have either you could:

zcat /usr/share/doc/exim4-base/README.Debian.gz | less
gunzip -c /usr/share/doc/exim4-base/README.Debian.gz | less

Not that you wouldn't have all the others available (at least since Woody) but in case you were on a system that didn't have all the tools and you didn't have the ability to install new things. zless and zcat are normally packaged with gzip. For completeness, if you dont have 'less', you might have 'more'. :P

--
Jacob



Reply to: