QuestionQ112

VerifiedEssential Commands

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

Choose two
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!