Restart your shell session in Linux (reprocess your initialization files)

To restart your shell session in Linux, use the source command to reprocess the user initialization files stored in your home directory.

To determine your shell, enter:

echo $SHELL

For example:

[dsidious@dstar2 ~]$ echo $SHELL

Use source (or its shortcut . ) to reprocess the initialization files in your home directory:

Shell Files Commands



source ~/.cshrc

source ~/.login

ksh .profile source ~/.profile



source ~/.bash_profile

source ~/.bashrc

If .bash_profile is not present, reprocess .profile; enter:

source ~/.profile

At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.

This is document aeee in the Knowledge Base.
Last modified on 2020-07-09 09:11:02.