QuestionQ112

Essential Commands

Which of the following files, when present, influence the behavior of the Bash shell?

Choose two
  • A ~/.bashconf
  • B ~/.bashrc
  • C ~/.bashdefaults
  • D ~/.bash_etc
  • E ~/.bash_profile
Explanation

Bash reads ~/.bashrc when it starts an interactive non-login shell. For an interactive login shell, Bash checks ~/.bash_profile, ~/.bash_login, and ~/.profile in that order and reads the first existing, readable file. Thus ~/.bashrc and ~/.bash_profile are recognized Bash startup files.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!