关于普通用户输入命令提示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

相关文章
|
Ubuntu 关系型数据库 MySQL
提示-bash: command not found的解决方法集锦
提示-bash: command not found的解决方法集锦
|
移动开发 Unix Shell
执行shell脚本时提示bad interpreter:No such file or directory的解决办法
执行shell脚本时提示bad interpreter:No such file or directory的解决办法
1388 0
|
数据安全/隐私保护
提示 you neet to root to perform this command 的解决办法
提示 you neet to root to perform this command 的解决办法
|
SQL 关系型数据库 Python
【Python】关闭 warning 信息提示
背景在使用 python MySQLdb 执行sql 命令的时候,如果执行结果含有warning,则会被写入到 stderr 展示到终端命令行。其实这些warning提示信息没有任何实际的作用。
1214 0
|
10月前
|
PHP
PHP显示报错提示,开启display_errors的方法
PHP显示报错提示,开启display_errors的方法
195 0