From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 15:27:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6650106568B for ; Fri, 3 Oct 2008 15:27:30 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA05.westchester.pa.mail.comcast.net (qmta05.westchester.pa.mail.comcast.net [76.96.62.48]) by mx1.freebsd.org (Postfix) with ESMTP id 50F678FC16 for ; Fri, 3 Oct 2008 15:27:29 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA05.westchester.pa.mail.comcast.net ([76.96.62.43]) by QMTA05.westchester.pa.mail.comcast.net with comcast id NBd41a0200vyq2s55FTVy0; Fri, 03 Oct 2008 15:27:29 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA05.westchester.pa.mail.comcast.net with comcast id NFTT1a00E2P6wsM3RFTTLr; Fri, 03 Oct 2008 15:27:28 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=aixOwHAQ9E-jXk-ih3gA:9 a=04JevFE3s5p6E1fF5h0A:7 a=7OTkMatjcClnMQeZNya597y4WeEA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 2CBC4C9419; Fri, 3 Oct 2008 08:27:27 -0700 (PDT) Date: Fri, 3 Oct 2008 08:27:27 -0700 From: Jeremy Chadwick To: Andreas Davour Message-ID: <20081003152727.GA32281@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: A question about the root shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2008 15:27:30 -0000 On Fri, Oct 03, 2008 at 05:20:32PM +0200, Andreas Davour wrote: > I'm not a csh user, in fact I hate it. Though, I use it as it is out of > the box for root so I'm reminded I'm not an unpriv user any longer. > > That being said I'm getting annoyed by the fact that the root shell is > always showing me all the "dot files" all the time. It clutters up the > terminal with so many files I don't see the ones I want to work with! Is > there a way to turn this feature off? > > I even tried to start a bash and alias ls to ls -F but it still kept > showing me the dot-files I'd rather not see. This is not a shell issue, as it applies to csh, sh, and bash. The "problem" is FreeBSD's /bin/ls. See the ls(1) man page, specifically the -A option description. What you want is the -I flag. Place the following in /root/.cshrc to get what you want: alias ls /bin/ls -I -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |