From owner-freebsd-questions Mon Jan 4 05:04:16 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA10994 for freebsd-questions-outgoing; Mon, 4 Jan 1999 05:04:16 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA10989 for ; Mon, 4 Jan 1999 05:04:14 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #3) id 0zx8Sa-000Mr9-00; Mon, 4 Jan 1999 11:46:12 +0000 Date: Mon, 4 Jan 1999 11:46:12 +0000 From: Ben Smithurst To: Gustavo Vieira G C Rios Cc: FreeBSD Questions Subject: Re: hidden files Message-ID: <19990104114612.A87825@scientia.demon.co.uk> References: <368FD4FF.EB9B8D81@netshell.vicosa.com.br> <368FDE8D.19042659@iname.com> <368FE58F.B5AE8FF8@netshell.vicosa.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <368FE58F.B5AE8FF8@netshell.vicosa.com.br> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gustavo Vieira G C Rios wrote: > So, how to disable "-a" option ? > I would like to see hidden files only when i pass "-a" option to "ls"! Why? Remember that you shouldn't be root much, you should do most things as another user. And you mean the "-A" option, they are different, -A doesn't show "." and "..", while -a does. If you don't want that to happen, remove this bit of code from /usr/src/bin/ls/ls.c (assuming you have the source under /usr/src) and rebuild ls: /* Root is -A automatically. */ if (!getuid()) f_listdot = 1; -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message