Linux系统中如何修改某用户语言环境变量

-bash-3.00# more /etc/profile# /etc/profile

# System wide environment and startup programs, for login setup# Functions and aliases go in /etc/bashrc

pathmunge () {if ! echo $PATH | /bin/egrep -q “(^|:)$1($|:)” ; thenif [ “$2” = “after” ] ; thenPATH=$PATH:$1elsePATH=$1:$PATHfifi}

# Path manipulationif [ `id -u` = 0 ]; thenpathmunge /sbinpathmunge /usr/sbinpathmunge /usr/local/sbinfi

pathmunge /usr/X11R6/bin after

# No core files by defaultulimit -S -c 0 > /dev/null 2>&1

USER=”`id -un`”LOGNAME=$USERMAIL=”/var/spool/mail/$USER”

HOSTNAME=`/bin/hostname`HISTSIZE=1000

if [ -z “$INPUTRC” -a ! -f “$HOME/.inputrc” ]; thenINPUTRC=/etc/inputrcfi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; doif [ -r “$i” ]; then. $ifidone

unset iunset pathmunge

人生重要的不是所站的位置,而是所朝的方向

Linux系统中如何修改某用户语言环境变量

相关文章:

你感兴趣的文章:

标签云: