DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Programming with the UNIX system shell

Adding commands to your .profile

Practice adding commands to your .profile. Edit the file and add the following echo command to the last line of the file:

   echo Good Morning! I am ready to work for you.
Write and quit the editor.

Whenever you make changes to your .profile and you want to initiate them in the current work session, you may cause the commands in .profile to be executed directly, using the ``.'' (dot) shell command. The shell reinitializes your environment by executing the commands in your .profile. Try this now. Type:

   . .profile
The system should respond with the following:
   Good Morning! I am ready to work for you.
   $

Next topic: Setting terminal options
Previous topic: Modifying your login environment

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004