All commands have been working until a few days ago on our Ubuntu server. When running
cd it returns
bash: /bin/ls: No such file or directory.
How can this be fixed?
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.
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
That one line gets pulled into various sub-systems that handle login however. Setting the PATH elsewhere can mess Ubuntu's GDM up.