User initialization scripts

Till now, we have seen different scripts, these scripts initialize the operating system, prior to the login of any user. Once the basic operating system in initialized, the user login process starts. This process is explained in the following topics.

Systemwide settings scripts

In the /etc/ folder, the following files are related to the user level initialization:

  • /etc/profile: Few distributions will have additional folder /etc/profile.d/. All the scripts from the profile.d folder will be executed.
  • /etc/bash.bashrc

The preceding scripts are called by all the users, including root and normal users. Initially, the /etc/profile script will be called. This script creates system-wide environment settings. Few distributions will ...

Get Learning Linux Shell Scripting 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.