Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My Terminal is not working correctly, it is not recognizing even ls command and showing "-bash: ls: command not found " error, help out in solving this... I need to work on terminal...

I will be very thankful to u...


share|improve this question

migrated from Aug 21 '10 at 8:26

This question came from our site for professional and enthusiast programmers.

Are you the root user? – pavanlimo Aug 20 '10 at 7:02
Yes, Im a root user... – Raviraja Aug 20 '10 at 7:07

1 Answer 1

can you echo $PATH and see if it includes /bin and /usr/bin

share|improve this answer
Hi thanks for ur reply... it is showing this "PATH:/usr/local/mysql/bin"... i think this is not the correct path right...? – Raviraja Aug 20 '10 at 6:55
right.. u need to change PATH to include /bin as well as /usr/bin. – akb Aug 20 '10 at 7:14
Can u please tell me the way to change the path... Im very new to Terminal... – Raviraja Aug 20 '10 at 7:22
You can use: export PATH=$PATH:/bin:/usr/bin It should work. – akb Aug 20 '10 at 8:40
Thank you somuch... – Raviraja Aug 20 '10 at 9:17

Your Answer


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