:: [DNG] Viewing file content (was Re:…
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Olaf Meeuwissen
日付:  
To: Steve Litt
CC: dng
古いトピック: Re: [DNG] system administration of non-systemd distros and releases
題目: [DNG] Viewing file content (was Re: system administration of non-systemd distros and releases)
Hi,

Steve Litt writes:

> What could possibly be easier than vim /var/log/messages, or
> vi /var/log/messages, or emacs /var/log/messages, or
> nano /var/log/messages? And notice with the old way, you have a choice,
> rather than having to look at log output with the vendor's proprietary
> tool.


Maybe I'm peculiar but I always find it absolutely, totally jaw-dropping
when people use text *editors* to *look* at file content. Makes my toes
curl up and blood curdle.

Why on earth would you want to edit your system logs anyway?

On De{bi,vu}an derivatives, I'd use `pager`. On any other Unix-based
OS, I'd use `more` or `less`, preferably.

# On my own machines `lv` makes a fine `pager` for me. On the fly
# decompression and handling of many different encodings. So for me,
# it's just
#
# pager /var/log/syslog.2.gz
#
# without any `zmore` or `zcat` piping. There is still no zpager :-/
# but with `lv` I don't really need one.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join