November 14th, 2002, 02:53 PM
ls of Directory shows empty, but du shows it isn't?
I've inherited a Solaris 7 system. When I enter a certain directory and run the ls command nothing shows up. Even when I try ls -a, I see nothing, not even ./ and ../
However, when I try du, I see the subdirectories, and then I can cd to any of the subdirectories and I can see the files within them with ls.
Can anyone explain why this is? And how I can list the files in this directory.
November 17th, 2002, 11:59 AM
There are several possible causes of this; maybe tell us more about the setup? It's kinda early for me and I just got to work so I'll ask a simple question that may or may not have anything to do with this: When you go up a directory and do a ls -l on the directory in question, what are the permissions returned?
Two things have come out of Berkeley, Unix and LSD.
It is uncertain which caused the other.
November 18th, 2002, 07:43 PM
The permissions for the directory in question are: drwxr-xr-x
and the owner/group are the user that I'm usually logged in as.
(BTW su'ing to root still doesn't get a listing)
December 4th, 2002, 06:44 PM
If you need any more info about the system, just ask. I'd be glad to tell you anything about it (maybe even the root password) if you could help me figure this out :-)
February 20th, 2003, 10:07 AM
Got the same prob on a solaris2.6
When I copy the directory somewhere else i can see it fine!!!
Any other ideas what went wrong??