Which of the following configuration files is read when a non-login bash shell is run?
  1. .bash_profile
  2. .bash_login
  3. .bashrc
  4. .profile
Explanation
Answer - C - The .bashrc configuration file is read when a non-login bash shell is run.

Key Takeaway: A login shell relates to a session where you log in to the system and directly end up in Bash shell. A non-login shell is a type of shell you open after logging in. The .bashrc file is used to configure the interactive Bash usage, like Bash aliases, setting favorite editors, setting the Bash prompt, and so on.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz