LPIC-1 Exam 102 v5 (Linux Administrator) — Question 87

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

Answer options

Correct answer: A

Explanation

The correct answer is A, /etc/profile, as it is designed to set environment variables and shell settings for all users upon login. The other options either apply to individual users, like ~/.bash_profile, or are not standard locations for global settings, such as /etc/.bashrc and /etc/shellenv.