Switch to bash if sh is in use

Sometimes, particularly if things go wrong, you might find yourself dumped to the simple Bourne Shell (sh) command prompt in order to rescue the system. sh is pretty primitive and, depending on the version in use and how it's set-up, might not have useful features like Tab autocomplete. You'll know if this is the case because the prompt will probably be a simple dollar ($) or hash (#) sign. To switch to bash, just type bash. If that doesn't work, you may have to specify the exact path: /bin/bash.

To find out which shell you're currently using, type ps -p $$ and look under the CMD heading.

Was this article helpful?

0 0

Post a comment