背景:
home目录下的配置文件只能控制一个用户,如果所有用户的某些设置相同的话,而且在启动时就进行设置,则可将相应的设置入入/etc/profie中
正文:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
umask 022
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="zh_CN.UTF-8"
#LANGUAGE="zh_CN:zh"
#LANG="POSIX"
LANGUAGE="zh_CN:zh,en_US:en"
阅读(601) | 评论(0) | 转发(0) |