Li Ning Li Ning - 4 months ago 23
Bash Question

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


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.