Profiles

From Hackepedia
Revision as of 08:47, 12 May 2015 by Hawson (talk | contribs)
Jump to navigationJump to search

All users on a system have the ability to customize their environment to their taste. This can involve choosing a shell such as bash, zsh, or tcsh, setting the environment, shell aliases, or running scripts at startup. These tasks are all handled by various "profile scripts".

There can be a fair amount of confusion as to what scripts are called, and in what order (tcsh is especially bad in this regard).

The profile scripts used by Bash (version 3) and tcsh (v6.13) look something like this:

Bash profile scripts.png
Image source

Another way to look at this information:

*ENV* Interactive Login = Yes Interative Login = No
Login = Yes /etc/profile
~/.bash_profile
/etc/profile
~/.bash_profile
$BASH_ENV
Login = No /etc/profile
~/.bash_profile
~/.bashrc
$BASH_ENV




Tcsh profile scripts.png
Image source