All commands have been working until a few days ago on our Ubuntu server. When running ls or cd it returns bash: /bin/ls: No such file or directory.
How can this be fixed?
|
feedback
|
|
It seems like the You can use
In the above, the "i" in the beginning of the line means that the package is indeed installed. | |||||
feedback
|
|
Surprisingly, the same message would be generated in this situation: /bin/ls binary is replaced with a shell script, but this shell script has an invalid bang line (for example if it starts with | ||||
|
feedback
|
|
Check your
That one line gets pulled into various sub-systems that handle login however. Setting the PATH elsewhere can mess Ubuntu's GDM up. | |||
|
feedback
|
lsis a binary so a faultyPATHenvironment could be to blame as many folks have suggested. However,cdis also a shell builtin, which should be working. Does it report exactly the same error? – Kyle Smith Jan 28 at 23:22