#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    25
    Rep Power
    0

    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.

    Thanks,
    Cerbere
  2. #2
  3. Throws Rocks
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio
    Posts
    392
    Rep Power
    14
    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.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    25
    Rep Power
    0
    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)

    Thanks,
    Cerbere
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    25
    Rep Power
    0
    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 :-)

    --- Cerbere
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    2
    Rep Power
    0

    Same prob


    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??

IMN logo majestic logo threadwatch logo seochat tools logo