Login Scripts
Your login script is stored in a file in your home directory called:
.login for the C shell
.profile for the Bourne & Korn shells
This file contains shell commands which are run automatically every time you log in. The C shell also has a file called .cshrc which is run automatically every time you start another shell with the csh command. A typical login file could contain the following commands:
set path=($path ~/bin) show UNIX where to look for programs
set ignoreeof tell C-shell not to exit on Ctrl-D
stty erase '^?' kill '^X' change terminal control characters
stty -tostop allow bkgnd progs to write to screen
mail check for new email messages
cd favorite.directory change to directory to start in
You can also change the shell prompt. The standard terminal control characters are:
Ctrl
erase H Erases (backspaces over) previous character
kill U Discards the line typed so far
eof D Marks the end of input to a program
swtch Z Pauses the current foreground program
intr C Interrupts or kills current foreground program
quit \ Kills the program and writes a core file
This page's parent within this Web Site. About this Web Site. Its home page. Email its Author.