exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 138 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 138
Topic #: 1
[All LFCS Questions]

What is the purpose of the file /etc/profile?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
rona962
2 months, 3 weeks ago
Selected Answer: C
The purpose of the file /etc/profile is: C. It contains environment variables that are set when a user logs in. Explanation: The file /etc/profile is a system-wide configuration file that is executed during login by the command shell for interactive user shells. Its primary purpose is to set environment variables and other system-wide settings that will be inherited by all shells and processes started by a user after they log in.
upvoted 1 times
rona962
2 months, 3 weeks ago
These environment variables can include things like PATH, which tells the shell where to look for executable files, and other settings that control the behavior of commands and programs executed by the user. Option A is incorrect because the welcome message is typically stored in another file, such as /etc/motd or /etc/issue.
upvoted 1 times
rona962
2 months, 3 weeks ago
Option B is incorrect because user authentication and login access control are handled by other system files, such as /etc/passwd and /etc/login.defs. Option D is incorrect because application profiles are typically stored in other locations specific to the application, such as in the user's home directory or in system-wide directories like /etc/appname/.
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