Example 4-2: Sample .profile fileA sample .profile file is shown below:
# # Some useful set options here: # set -o vi # use vi to edit my command-line set -o noclobber # don't clobber existing files # # Set some terminal characteristics here: # stty susp ^z stty intr ^c stty eof ^d # # Set some environment variables below: # TERM=vt220; export TERM PATH=/bin:/usr/bin:/usr/local/bin:/usr/X/bin:. PS1=$PWD> PS2= continue: # # Some useful aliases here: # alias cd..=cd .. alias copy=cp alias del=rm alias h=history alias help=man alias l=ls -al | more alias ren=rm alias type=cat This is just a sample of the things that can be done inside of your .profile. Your .profile may be simpler or far more complex, depending on your needs and desires.
Next: Command History and Command Up: The Korn Shell Previous: .profile   Contents |