Appendix A. Sample .profile File

   

Korn Shell: Unix and Linux Programming Manual, Third Edition, The
By Anatole Olczak

Table of Contents


This appendix contains a sample .profile file. Notice that the environment variables are set and exported with one typeset command. This speeds up processing of the .profile file.

 #  #     Sample .profile File  #  # Set/export environment variables  typeset -x CDPATH=:$HOME:/usr/spool \        EDITOR=vi \        ENV=${HOME:-.}/.env \        HISTFILE=$HOME/.history \        HISTSIZE=200 \        HOME=/home/anatole \        LOGNAME=anatole \        MAILCHECK=300 \        MAILPATH=~/inbox:/usr/spool/mail/$LOGNAME \        PAGER=$(whence more) \        PATH=${PATH#:}:/usr/etc:$NEWS/bin: \        PS1='!:$PWD> ' \        PS4='[$LINENO]+ ' \        SHELL=/bin/ksh \        TERM=sun \        TMOUT=600 \        USER=$LOGNAME  # Set global options  set -o noclobber -o markdirs +o bgnice  # Execute commands from the ~/.logout file on exit  trap '. ~/.logout' EXIT 

       
    Top
     



    Korn Shell. Unix and Linux Programming Manual, Third Edition
    Korn Shell. Unix and Linux Programming Manual, Third Edition
    ISBN: N/A
    EAN: N/A
    Year: 2000
    Pages: 177

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net