天天看點

關于普通使用者輸入指令提示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