exam questions

Exam 102-500 All Questions

View all questions & answers for the 102-500 exam

Exam 102-500 topic 1 question 44 discussion

Actual exam question from LPI's 102-500
Question #: 44
Topic #: 1
[All 102-500 Questions]

Which of the following configuration files should be modified to globally set shell variables for all users?

  • A. /etc/profile
  • B. /etc/bashrc
  • C. ~/.bash_profile
  • D. /etc/.bashrc
  • E. /etc/shellenv
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Adam_H
6 months, 4 weeks ago
Selected Answer: A
A is correct "This is the system-wide .profile file for the Bourne shell and Bourne compatible shells (bash included). Through a series of if statements this file sets a number of variables such as PATH and PS1 accordingly as well as sourcing — if they exist — both the file /etc/bash.bashrc and those in the directory /etc/profile.d." source: LPIC-1 (102) (Version 5.0), page 9
upvoted 3 times
...
klever
8 months, 1 week ago
cat /etc/profile /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
upvoted 2 times
...
Sergio_light
1 year, 8 months ago
A is correct
upvoted 2 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