13.1. The /etc/profile
The profile file located in /etc is read automatically by everyone when they log in. This file will generally contain:
global or local environment variables;
PATH information;
terminal settings;
security commands; and
message of the day or disclaimer information.
Here’s a brief explanation of the above points.
Certain global environment variables are set so that users and their shell processes and applications can have access to them.
PATH holds the location of directories containing executable, library, or just plain files so that you locate them quickly.
Terminal settings lets the system know about the more general characteristics of your terminal.
Security commands will include file creation modes, or double login prompts ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access