Описание тега .profile
.profile is the local shell initialization script for Unix shells (such as sh, ksh, bash and zsh). $HOME/.profile, also known as ~/.profile, is run exactly once per session -- when you login. As it runs after system wide /etc/profile script, the typical thing you want to do in this script is set, or modify, environment variables. If you set a shell option or alias in this script, it will not be propagated to a subshell.
Like /etc/profile
, ~/.profile
runs automatically at startup, and it can be rerun after modification using the source command.