When I open a terminal on my own computer and run echo $0, I get /bin/bash - which is the name of the executable being run.

However, when I run echo $0 in an ssh session, I get -bash. Why? What does the dash mean? It's not like there is a command named -bash.

marked as duplicate by Jeff Schaller, Tim Kennedy, Thomas, Stephen Kitt bash Oct 3 '18 at 19:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.