您的位置:首页 > 其它

关于普通用户输入命令提示command not found 及字符集修改

2016-11-12 10:57 316 查看
普通用户添加环境变量
#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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐