From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 15:30:56 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 D864C1065686 for ; Fri, 3 Oct 2008 15:30:56 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 913C58FC1A for ; Fri, 3 Oct 2008 15:30:56 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:53552 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KlmcJ-0006iC-4g for freebsd-questions@freebsd.org; Fri, 03 Oct 2008 17:30:55 +0200 Received: (qmail 22344 invoked from network); 3 Oct 2008 17:30:51 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 3 Oct 2008 17:30:51 +0200 Received: (qmail 86290 invoked by uid 1001); 3 Oct 2008 17:30:51 +0200 Date: Fri, 3 Oct 2008 17:30:51 +0200 From: Erik Trulsson To: Andreas Davour Message-ID: <20081003153051.GA86147@owl.midgard.homeip.net> 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) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1KlmcJ-0006iC-4g. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KlmcJ-0006iC-4g db745c7a61aa99706c960e0ac3f95ee5 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:30:56 -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. > > Anyone? > > /Andreas Is the problem the output of ls(1) or the output when using (some form of) tab-completion or perhaps the result of evaluating wildcard characters ('*', '?', etc)? In the former case it has nothing to do with which shell you are using but is instead a feature of ls(1). Read the ls(1) manpage and pay special attention to the '-A' and '-I' options. In the second and third case (tab completion and wildcard expansion) it depends entirely on your shell how it is handled. I am afraid I am not familiar enough with either bash or csh to say how (or even if) it can be configured with them. With zsh (my preferred shell) one can control if dot-files should be expanded or not with 'setopt globdots'/'setopt noglobdots'. -- Erik Trulsson ertr1013@student.uu.se