nerdexam
LPI

202-450 · Question #95

When bash is invoked as an interactive login shell, which of the following sentences is true?

The correct answer is C. It reads and executes commands in ~/.bashrc only if /etc/profile or another initialization script. You've hit your weekly limit · resets 5am (America/New_York)

214 Troubleshooting

Question

When bash is invoked as an interactive login shell, which of the following sentences is true?

Options

  • AIt first reads and executes commands in /etc/profile and then does same for ~/.bash_profile
  • BIt first reads and executes commands in /etc/bashrc and then does same for /etc/profile
  • CIt reads and executes commands in ~/.bashrc only if /etc/profile or another initialization script
  • DIt ignores /etc/profile and only reads and executes commands in ~/.bashrc
  • EIt first reads and executes commands in /etc/profile and then does same for ~/.bash_profile,

How the community answered

(54 responses)
  • A
    4% (2)
  • B
    7% (4)
  • C
    78% (42)
  • D
    2% (1)
  • E
    9% (5)

Explanation

You've hit your weekly limit · resets 5am (America/New_York)

Topics

#bash#login shell#shell initialization#profile scripts

Community Discussion

No community discussion yet for this question.

Full 202-450 Practice