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

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.