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