Configuring and working with the shells

Resetting the environment

From time to time you may want to reset your environment; either because you have changed your .profile or .login files, or because you've erased a variable.

To reset the environment, re-execute your login file. Under the Bourne or Korn shells, type the following:

   $ . $HOME/.profile
Under the Korn shell (but not the Bourne shell) you can also type the following:
   $ . ~/.profile
(The dot is a command to execute the following file.)

Under the C shell, type the following:

   % source $HOME/.login

Next topic: Some features to make life easier
Previous topic: A sample login script

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005