Join The Conversation

Users are always welcome to leave comments about the articles, whether they are questions, comments, constructive criticism, old information, or notices of typos. Please keep in mind that all comments are moderated according to our comment policy.

2 thoughts on โ€œWhat is Interactive Login and Non-Login Shellโ€

  1. Hi, does the interactive non-login shell has a loaded/sourced โ€œbaseโ€ (โ€œ~/.bash_profileโ€œ, โ€œ~/.profile)?
    (I understand it doesnโ€™t load it every time new non-login shell is opened, but does it โ€œcontainโ€ what was there during the boot?).

    Or it sources ONLY .bashrc so everything in the โ€œ~/.bash_profileโ€œ, โ€œ~/.profileโ€ is completely ignored?

    Reply
    • Interactive non-login shells do not directly source ~/.bash_profile or ~/.profile. However, they inherit environment variables and settings from these files indirectly through a chain of sourcing.

      Reply