From owner-freebsd-questions@FreeBSD.ORG Tue May 20 22:13:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8824E37B401 for ; Tue, 20 May 2003 22:13:44 -0700 (PDT) Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 056A543F3F for ; Tue, 20 May 2003 22:13:44 -0700 (PDT) (envelope-from parv_fm@mailsent.net) Received: from sdn-ap-018dcwashp0404.dialsprint.net ([63.188.177.150] helo=moo.holy.cow) by snipe.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19ILuy-00003K-00 for freebsd-questions@freebsd.org; Tue, 20 May 2003 22:13:36 -0700 Received: by moo.holy.cow (Postfix, from userid 1001) id 0E06FA98A; Wed, 21 May 2003 01:16:44 -0400 (EDT) Date: Wed, 21 May 2003 01:16:43 -0400 From: parv To: Free BSD Questions list Message-ID: <20030521051643.GA49947@moo.holy.cow> Mail-Followup-To: Free BSD Questions list References: <20030521011017.GA9791@teddy.fas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030521011017.GA9791@teddy.fas.com> Subject: Re: Simple text fiel viewere? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2003 05:13:44 -0000 in message <20030521011017.GA9791@teddy.fas.com>, wrote stan thusly... > > I'm looking for a simple (notepad like) text file viewer. I need > to be able to use this in "read only" mode WO the posibiliy of the > user editing the file. It's too easy to bring up an editor while using less, unless one sets too complicated key binding to be typed accidentally. At least that is the case for me. I use an vim alias to avoid accidental changes (both changing the buffer and overwriting file); vim nags when i do. If i would really need to edit the file, i would need to explicitly set the modifiable option. In actuality, i just quit that particular session, and start vim in regular mode (file can be saved & modified). Below is the alias (for sh like shells)... alias view='vim -RM' ...but i suppose that would not quit cut it, as you want to remove even the possibility of editing. Other editor/viewer choices that i know of w/o looking in ports/editors are... cat | less cat | xless xv gv (viewing file as PDF or PS) xmessage -file ...but none of them can beat, in increasing order of safety and complexity, read-only permissions, uchg or schg flag, and secure levels. I think "xmessage" solves the problem quite easily. - parv --