exam questions

Exam LX0-104 All Questions

View all questions & answers for the LX0-104 exam

Exam LX0-104 topic 1 question 18 discussion

Actual exam question from CompTIA's LX0-104
Question #: 18
Topic #: 1
[All LX0-104 Questions]

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

  • A. ~/.bashconf
  • B. ~/.bashrc
  • C. ~/.bashdefaults
  • D. ~/.bash_etc
  • E. ~/.bash_profile
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
The following files affect the behavior of the Bash shell: A. ~/.bashrc B. ~/.bash_profile ~/.bashrc is a shell script that is executed whenever a new instance of the Bash shell is started, such as when you open a terminal window. It is typically used to set environment variables, define aliases, and customize the shell's prompt. ~/.bash_profile is a shell script that is executed whenever a user logs into the system. It is used to set up the user's environment, including defining environment variables, setting the PATH, and defining functions and aliases. If the ~/.bashrc file exists, it is usually sourced from the ~/.bash_profile file.
upvoted 1 times
linux_admin
2 years, 2 months ago
Answers B. and E. are correct.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago