nerdexam
LPI

201-400 · Question #204

How do /etc/profile and /etc/bashrc differ?

The correct answer is C. /etc/profile is a login script; /etc/bashrc is a non-login script. See the full explanation below for the reasoning.

Question

How do /etc/profile and /etc/bashrc differ?

Options

  • A/etc/profile is a tcsh logout script; /etc/bashrc holds bash environment variables.
  • B/etc/profile holds user login statistics; /etc/bashrc holds user shell preferences.
  • C/etc/profile is a login script; /etc/bashrc is a non-login script.
  • D/etc/profile holds user account data; /etc/bashrc is a bash startup script.

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    9% (4)
  • C
    82% (37)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 201-400 Practice