Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2002 17:30:05 -0400 (EDT)
From:      Dru <dlavigne6@cogeco.ca>
To:        Mack Lobell <macklobell@hotmail.com>
Cc:        freebsd-newbies@FreeBSD.ORG
Subject:   Re: Why does /bin/ls show dot-files when logged in as root?
Message-ID:  <20020723172703.M158-100000@x1-6-00-80-c8-3a-b8-46.kico2.on.cogeco.ca>
In-Reply-To: <F158HKOXND05SAsOO1800019969@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 23 Jul 2002, Mack Lobell wrote:

> Hi,
>
> i have a stupid ls question. When i hit /bin/ls as root i get a list
> including dot-files. If i hit /bin/ls as a normal user i don't get any
> dot-files, how come?
>
> Is this configurable?

Take a peek at /root/.cshrc

and you'll see this alias:

alias ls	ls -Fa

the a shows all files (including the hidden or dot files) and the F puts a
/ after directories and a * after executables.

You can put the same alias in your regular user's shell file.

Dru


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020723172703.M158-100000>