天天看点

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

普通用户添加环境变量

#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 

本文转自  一招拜师  51CTO博客,原文链接:http://blog.51cto.com/sadoc/1872004