Linux basics
Login shell, Interactive shell and non-interactive login shell
- login shell: is the first process that executes under your user ID when you log in for an interactive session. Login shells typically read a file that does things like setting environment variables: /etc/profile and ~/.profile for the traditional Bourne shell, ~/.bash_profile additionally for bash. When you log in on a text console, or through SSH, or with
su -
, you get an interactive login shell. When you log in in graphical mode (on an X display manager), you don't get a login shell, instead you get a session manager or a window manager. - Interactive login shell: When you log in on a text console, or through SSH, or with su -, you get an interactive login shell. The most common case is our terminal.
- Interactive non-login shell: When you start a shell in a terminal in an existing session(screen, X terminal, Emacs terminal buffer), you get an interactive, non-login shell. That shell might read a shell configuration file(~/.bashrc for bash invoked as bash)
refer to website, website for checking shell type
how to add alias in Ubuntu?
- check ~/.bashrc