I have two bash running; one is Terminal application that runs bash, the other one is xterm application that runs bash.
ps -f, I have
-bash one, and
bash at the other.
What makes this difference?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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).