Li Ning Li Ning - 1 month ago 8
Bash Question

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

Answer

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

ls -l /bin/sh 
output:
/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.