How do I restart my Unix session (re-source my initialization files)?

To restart a Unix session, you first need to know which shell you're using. To find out, enter:

  echo $SHELL  

The name of your shell is the last part of what you see (e.g., if you see /usr/bin/ksh, then your shell is ksh).

If your shell is csh or tcsh, enter:

  source .cshrc; source .login  

If your shell is ksh or bash, enter:

  . .profile  

If your shell is bash, and you have created a .bashrc file, you should also enter:

  . .bashrc  

Note that, in bash, the source command is the same thing as the dot command ( . ); you can use them interchangeably, depending on which makes more sense to you.

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document aeee in the Knowledge Base.
Last modified on 2017-05-16 11:51:49.

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.