Date: Mon, 4 Jan 1999 11:46:12 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Gustavo Vieira G C Rios <grios@netshell.vicosa.com.br> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: hidden files Message-ID: <19990104114612.A87825@scientia.demon.co.uk> In-Reply-To: <368FE58F.B5AE8FF8@netshell.vicosa.com.br> References: <368FD4FF.EB9B8D81@netshell.vicosa.com.br> <368FDE8D.19042659@iname.com> <368FE58F.B5AE8FF8@netshell.vicosa.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990104114612.A87825>