LPI
117-201 · 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
(34 responses)- A6% (2)
- B3% (1)
- C79% (27)
- D12% (4)
Community Discussion
No community discussion yet for this question.