From owner-freebsd-questions Wed Jan 9 21:54:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.anu.edu.au (mail.anu.edu.au [150.203.2.7]) by hub.freebsd.org (Postfix) with ESMTP id 3D40737B404 for ; Wed, 9 Jan 2002 21:54:17 -0800 (PST) Received: from nucl03.anu.edu.au (nucl03.anu.edu.au [150.203.19.120]) by mail.anu.edu.au (8.9.3/8.9.3) with ESMTP id QAA22462; Thu, 10 Jan 2002 16:54:15 +1100 (EST) Received: (from gjl103@localhost) by nucl03.anu.edu.au (8.11.6/8.11.6) id g0A5sFw29067; Thu, 10 Jan 2002 16:54:15 +1100 (EST) (envelope-from gjl103) Date: Thu, 10 Jan 2002 16:54:15 +1100 From: Greg Lane To: Chris Fedde Cc: freebsd-questions@FreeBSD.org Subject: Re: sshd Banner option Message-ID: <20020110165415.A29024@nucl03.anu.edu.au> Reply-To: gregory.lane@anu.edu.au Mail-Followup-To: Chris Fedde , freebsd-questions@FreeBSD.org References: <20020110153936.A28566@nucl03.anu.edu.au> <200201100540.g0A5eKO09982@fedde.littleton.co.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201100540.g0A5eKO09982@fedde.littleton.co.us>; from chris@fedde.littleton.co.us on Wed, Jan 09, 2002 at 10:40:20PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 09, 2002 at 10:40:20PM -0700, Chris Fedde wrote: > On Thu, 10 Jan 2002 15:39:36 +1100 Greg Lane wrote: > +------------------ > | 1>xxxxx@yyyyy:~$ more /etc/ssh/sshd_config | grep Banner > +------------------ > > This is not intended as a slam on anyone. I just want to point out > that this command line is a little odd. More(1) will work this way > but but that is kind of a degradation of it's main function as a > pager. cat(1) is the more canonical way to dump files into pipes. > The most common way to write this command line is to use grep > directly: > > grep Banner /etc/ssh/sshd_config > Yeah, but when you've just typed "more" to use its main function as a pager to scroll through and find the relevant line, its pretty easy to bring back the command and add a grep on the end isn't it..... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message