nerdexam
Oracle

1Z0-409 · Question #147

When bash is invoked as an interactive login shell, what is the order in which the bash configuration files are read with the assumption that all the files exist and are readable?

The correct answer is B. /etc/profile,~/.bash_profile,~/.bash_login,~/.profile. See the full explanation below for the reasoning.

Question

When bash is invoked as an interactive login shell, what is the order in which the bash configuration files are read with the assumption that all the files exist and are readable?

Options

  • A/.bash_profile,/.bash_login,/etc/profile,~/.profile
  • B/etc/profile,/.bash_profile,/.bash_login,~/.profile
  • C/.profile,/.bash_login,/etc/profile,~/.bash_profile
  • D/.bash_login,/etc/profile,/.profile,~/.bash_profile

How the community answered

(68 responses)
  • A
    3% (2)
  • B
    71% (48)
  • C
    7% (5)
  • D
    19% (13)

Community Discussion

No community discussion yet for this question.

Full 1Z0-409 Practice