普通用户添加环境变量
#which ifconfig 查找
#vim ~/.bash_profile
以下是配置文件
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/sbin:/usr/sbin
export PATH
~
#source ~/.bash_profile 生效
提示:
:/usr/local/sbin:/usr/sbin 是添加部分
字符集在/etc/sysconfig/i18n
[root@localhost ~]# more /etc/sysconfig/i18n
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
修改LANG
#source /etc/sysconfig/i18n
转载于:https://blog.51cto.com/sadoc/1872004