Skip to main content
Linux AdministrationMediumMultiple Choice

Linux Administration Question

Statement

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

#bashrc#bash_profile#bash_startup_files#shell_configuration
A

~/.bashconf

B

~/.bashrc

Correct
C

~/.bashdefaults

D

~/.bash_etc

E

~/.bash_profile

Correct

Resolution & Explanations

~/.bashrc is executed for non-login interactive shells, and ~/.bash_profile (or ~/.bash_login, ~/.profile) is executed for login shells.