QuestionQ104

Essential Commands

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

  • 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.
Explanation

/etc/profile is a system-wide login-shell initialization file. It is commonly used to set environment variables and other shell environment settings when a user logs in. GNU Bash reads and executes it for login shells when the file exists.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!