Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 3
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
5. Tuning the user environment
  


Understanding --login page 4 of 13


The second way to tell bash to run as a "login" shell is with the --login command-line option. This is sometimes used by terminal emulators (like xterm) to make their bash sessions act like initial login sessions.

After you have logged in, more copies of your shell will be run. Unless they are started with --login or have a dash in the process name, these sessions will not be "login" shells. If they give you a prompt, however, they are called "interactive" shells. If bash is started as "interactive", but not "login", it will ignore /etc/profile and ~/.bash_profile and will instead source ~/.bashrc.

interactiveloginprofilerc
yesyessourceignore
yesnoignoresource
noyessourceignore
nonoignoreignore

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact