Li Ning Li Ning - 1 year ago 92
Bash Question

What's the difference between '~' '$' and '-> ~' in Ubuntu shell?

Answer Source

your default shell -> is zsh, when you enter sh, ubuntu default shell is dash, you can get it by

ls -l /bin/sh 
/bin/sh -> /bin/dash

quit is not a command of dash, while you enter bash command, you enter a bash environment, exit is bash command, if you want get a same result you can change /bin/sh symbol link to /bin/bash.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download