View Single Post
Old 29th September 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

-A is set automatically for the root user, from ls(1)
Code:
     -A      Include directory entries whose names begin with a dot (`.')
             except for . and ...  Automatically set for the super-user unless
             -I is specified.
You can use -I (That's a capital i) to prevent this, again from ls(1):
Code:
     -I      Prevent -A from being automatically set for the super-user.
IIRC -I was introduced in FreeBSD 6, it's not present in the other BSD's or GNU ls.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote