What Is The Difference Between Login Shell And Non-login Shell

22 Jan 2013

Good question.

On Ubuntu, Gnome Terminal is certainly NOT running login shell. One important thing to know is: login shell and non-login shell read different environment settings, basically login shell reads profile, whereas the non-login one reads bashrc.

The moral of the story is, when you try to do environment settings, you need to put settings at different places for different kinds of shells.