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
/bin/bash

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

Shell Files Commands
csh/tcsh

.cshrc

.login

source ~/.cshrc

source ~/.login

ksh .profile source ~/.profile
bash

~/.bash_profile

~/.bashrc

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.