Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2002 18:05:40 +1100
From:      Jacob Rhoden <jrhoden@unimelb.edu.au>
To:        freebsd-questions@freebsd.org
Cc:        "Ertan Kucukoglu" <ek@kalyonbilgisayar.com.tr>
Subject:   Re: ls shows hidden files when used by root
Message-ID:  <200210311805.40235.jrhoden@unimelb.edu.au>
In-Reply-To: <1036047216.3dc0d3702e561@imp.hq.dyns.cx>
References:  <web-7011959@doruk.net.tr> <1036047216.3dc0d3702e561@imp.hq.dyns.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 Oct 2002 17:53, Michael Joyner wrote:
> Quoting Ertan Kucukoglu <ek@kalyonbilgisayar.com.tr>:
> > Hi all,
> >
> > When I su to root or login as root from console. ls shows
> > hidden files, too. No matter I use "ls -a" or "ls" result
> > is same:

> per 'man ls'
>      The following options are available:
>      -A      List all entries except for . and ...  Always set for the
> super- user.

You could make an alias so ls actually does 'su normaluser -c "ls"'
Or you could just not use your root account for file management.

Regards,
Jacob

Jacob Rhoden            Phone: +61 3 8344 6102
ITS Division            Email: jrhoden@unimelb.edu.au
Melbourne University   Mobile: +61 403 788 386

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?200210311805.40235.jrhoden>