吆嘻!
分类: LINUX
2011-06-01 08:52:41
login files
/etc/environment root 定义了用户基本环境参数
/etc/profile root 定义了除了上个文件外的额外文件,所有用户的环境变量
$HOME/.kshrc 每一次开启的一个ksh时,的设置
$HOME/.profile 用户自定的环境参数, 优先级最高。
profile
environment文件
bash-3.00$ cat environment.txt
PATH=/usr/linux/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin
TZ=BEIST-8
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
ODMDIR=/etc/objrepos
profile文件
bash-3.00$ cat profile.txt
trap "" 1 2 3
readonly LOGNAME
MAIL=/usr/spool/mail/$LOGNAME
MAILMSG="[YOU HAVE NEW MAIL]"
TERM_DEFAULT=lft
TERM=`termdef`
TERM=${TERM:-$TERM_DEFAULT}
if [ "$LC_MESSAGES" = "" -a "$TERM" != "lft" ]
then
unset LC_MESSAGES
fi
export LOGNAME MAIL MAILMSG TERM
trap 1 2 3
export PATH="$PATH:/usr/python/bin"
bash-3.00$
fc -l 查看输入的命令
history
PS1: primary prompt string (that is,your prompt)默认提示符
TERM: 终端类型 the terminal type
PATH: 路径