Linux Foundation Certified System Administrator (LFCS) — Question 91
What is the purpose of the file /etc/profile?
Answer options
- A. It contains the welcome message that is displayed after login.
- B. It contains security profiles defining which users are allowed to log in.
- C. It contains environment variables that are set when a user logs in.
- D. It contains default application profiles for users that run an application for the first time.
Correct answer: C
Explanation
The /etc/profile file is crucial as it sets up the environment variables for users during login, making option C the correct answer. Options A, B, and D are incorrect as they describe different functionalities that are not associated with the /etc/profile file.