1833353 Members
2992 Online
110051 Solutions
New Discussion

dirs appear to be empty

 
SOLVED
Go to solution
TMcB
Super Advisor

dirs appear to be empty

Help!!

Whenever I do an ls on any dir it appears to be empty.

Thankfully, I realised that the files are still there, as I was able to run sam and mount the root director on another machine and to an ls.

This is happening on all consoles.

Any help is greatly appreciated.
6 REPLIES 6
Volker Borowski
Honored Contributor
Solution

Re: dirs appear to be empty

Hi,

somebody played a joke to you and replaced
/usr/bin/ls with something else ?

Try to use /sbin/ls

Volker
KapilRaj
Honored Contributor

Re: dirs appear to be empty

how do you say the dir is empty ?. If the directory is an automounted one you may find this.

Or some problem with /usr/bin/ls command just checkup the size & compare it with another copy

kaps
Nothing is impossible
Bill McNAMARA_1
Honored Contributor

Re: dirs appear to be empty

try cat'ing the directory name
cp the ls of another system over.

Later,
Bill
It works for me (tm)
TMcB
Super Advisor

Re: dirs appear to be empty

Thanks folks

you were absolutely right - I copied /sbin/ls to /usr/bin, and I can see all my files again

Thanks for the help
Bill McNAMARA_1
Honored Contributor

Re: dirs appear to be empty

/sbin/ls is a statically linked file, you should copy ls from another systems or backup /usr/bin over..

Later,
Bill
It works for me (tm)
Volker Borowski
Honored Contributor

Re: dirs appear to be empty

Bill is right,
you should substitute the correct one !
/sbin/ls was just an alternative to get the output.

BTW: If the system has been corrupted in such a way, I would check if somebody did change something else, esp. the lv* commands, because you use them frequently and they have s-bit set !

Volker