:: Re: [DNG] Viewing file content (was…
Pàgina inicial
Delete this message
Reply to this message
Autor: Hendrik Boom
Data:  
A: dng
Assumpte: Re: [DNG] Viewing file content (was Re: system administration of non-systemd distros and releases)
On Fri, Nov 26, 2021 at 09:23:05PM -0500, Steve Litt wrote:
> Olaf Meeuwissen said on Fri, 26 Nov 2021 18:40:37 +0900
>
> >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.
>
> You're right. Use less or some other *viewer*.


For things like log output, which must be kept unchanged, a read-only
viewer would suffice. Or a read-only editor. Editors sometimes have
texual search mechanisms that are better than viewers. And if you use
one editor a *lot*, its commands are muscle memory.

For things tat you primarily want to read, but rarely fix a typo or
such, you can open a text editor in read-only mode, protecting you from
inadvertent edits.

-- hendrik

>
> SteveT
>
> Steve Litt
> Spring 2021 featured book: Troubleshooting Techniques of the Successful
> Technologist http://www.troubleshooters.com/techniques
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng