System Administration Guide

Examples of User and Site Initialization Files

The following sections provide examples of user and site initialization files that you can use to start customizing your own initialization files. Many of the examples use system names and paths that you will have to change for your particular site.

Example--.profile File


Example 1-1 Example .profile File


 [Defines the user's shell search path.] PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/ccs/bin:.
 [Defines the path to the user's mail file.] MAIL=/var/mail/$LOGNAME
 [Defines the environment variable to the user's Usenet news
server. ] NNTPSERVER=server1
 [Defines the user's search path for man pages.] MANPATH=/usr/share/man:/usr/local/man
 [Defines the user's default printer. ] PRINTER=printer1
 [Sets the user's default file creation permissions. ] umask 022	
 [Sets the listed environment variables.] export PATH MAIL NNTPSERVER MANPATH PRINTER 

Example--.cshrc File


Example 1-2 Example .cshrc File


 [Sets the user's shell search path. ] set path=($PATH $HOME/bin /usr/local/bin /usr/ccs/bin)
 [Sets the path to the user's mail file.] setenv MAIL /var/mail/$LOGNAME
 [Sets the user's Usenet news server. ] setenv NNTPSERVER server1
 [Sets the user's default printer. ] setenv PRINTER printer1
 [Creates an alias for the history command (the user will need to type only h to run the history command). ] alias h history
 [Sets the user's default file creation permissions. ] umask 022
 [Runs the site initialization file shown in "Example--Site Initialization File".] source /net/server2/site-init-files/site.login