Linux_FoundationLinux_Foundation
LFCS · Question #461
LFCS Question #461: Real Exam Question with Answer & Explanation
The correct answer is B: .bashrc. To set a user's preferred editor for programs launched from their shell, the user's ~/.bashrc file is the correct configuration location.
Submitted by daniela_cl· Apr 18, 2026User and Group Management
Question
A user complained that programs started from his shell won't use his favorite editor. Which of the following files should you edit to change this?
Options
- A.editor
- B.bashrc
- C.bash_rc
- D~/bash.conf
Explanation
To set a user's preferred editor for programs launched from their shell, the user's ~/.bashrc file is the correct configuration location.
Common mistakes.
- A.
.editoris not a standard shell configuration file used for setting a preferred editor. - C.
.bash_rcis a common misspelling; the correct file name for user Bash configuration is.bashrc. - D.
~/bash.confis not a standard configuration file that Bash automatically sources.
Concept tested. User-specific Bash shell configuration
Reference. https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files
Topics
#shell configuration#environment variables#user profiles#text editors
Community Discussion
No community discussion yet for this question.