1

This question already has an answer here:

enter image description here

I have two bash running; one is Terminal application that runs bash, the other one is xterm application that runs bash.

With ps -f, I have -bash one, and bash at the other. What makes this difference?

marked as duplicate by slm, Renan, Anthon, jasonwryan, Gilles Jan 17 '14 at 23:26

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.

0

I found an answer from this post: https://unix.stackexchange.com/a/46856/1090

It means that bash executed from Terminal is login-shell (-bash), when the bash from xterm is not (bash).

Not the answer you're looking for? Browse other questions tagged or ask your own question.