Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

All of the sudden the handy command ls stopped working on my Ubuntu 10.04 server.

The only thing I did was add a new entry to the PATH environment variable and that was all.

Here is the result from echo $PATH:


Why this is happening?

Also, I navigated to the /usr/bin folder and the ls program was there but I wasn't able to run it from there either.

Edit: 'ps' is also not working. I also tried to remove the lines I edited on .bashrc and nothing changes

Plus stat /bin/ls gives me this:

Size: 39696         Blocks: 80         IO Block: 4096   regular file
Device: 802h/2050d  Inode: 13377592    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (  122/ UNKNOWN)   Gid: (  114/ UNKNOWN)
Access: 2011-08-11 06:25:04.000000000 +0200
Modify: 2010-09-21 20:32:55.000000000 +0200
Change: 2011-07-24 17:22:39.000000000 +0200
share|improve this question
Could you please include in your question exactly what happens when you run ls. – N.N. Aug 10 '11 at 13:38
@N.N. From the way I'm reading it, it does nothing. – James Aug 10 '11 at 13:45
ls is typically in /bin/ls – Marco Ceppi Aug 10 '11 at 13:57
What does stat /bin/ls tell you? – taneli Aug 11 '11 at 8:49
Can you update the question with your findings based on the comments here? This would make it easier to understand the question without having to traverse this discussion. – Shoan Aug 11 '11 at 11:35

Judging by the file size and this link, you have a rootkit on your system. The most sensible course of action is to make a backup of any personal data and reinstall from scratch.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.