fedora、redhat默认系统语言的修改方法
来源:互联网 发布:分销网络 编辑:程序博客网 时间:2024/05/21 21:38
- fedora、redhat默认系统语言的修改方法一、在shell下,执行export:...declare -x LANG="en_US"...这个LANE环境变量,就是我们希望去修改的,但是在哪里修改,比较合适呢?二、使用man bash:When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.即bash在登录时,会依次读取这些配置文件:/etc/profile~/.bash_profile~/.bash_login~/.profile三、对于shell的默认语言,应该在系统级的文件中(/etc/profile)修改,以便修改的结果可以被每一个用户继承:打开/etc/profile,直接在其上,找不到关于LANG变量的设置命令,但细心观察,该脚本还执行了其他脚本:...for i in /etc/profile.d/*.sh ; doif [ -r "$i" ]; then. $ifidone...四、到/etc/profile.d/目录下,查看这些*.sh的脚本,发现了一个名为"lang.sh"的文件,应该就是它了:打开/etc/profile.d/lang.sh,开头几句:...for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do[ -f $langfile ] && . $langfile && sourced=1done...这个/etc/sysconfig/i18n,就是设置系统默认语言的地方,对于我的系统,现在它的内容如下:LANG="en_US"SUPPORTED="en_US:en"SYSFONT="lat0-sun16"SYSFONTACM="iso01"如果,你希望系统的默认语言变更为UTF-8,可以把LANG修改为:LANG="en_US.UTF-8"
0 0
- fedora、redhat默认系统语言的修改方法
- fedora、redhat默认系统语言的修改方法
- fedora、redhat默认系统语言的修改方法
- redHat 修改系统语言区域
- 修改系统默认语言
- 修改redhat默认显示语言为中文
- centos 6.3 修改默认的系统语言
- 修改CentOS 7的系统默认语言
- 修改Linux默认系统语言
- 修改linux系统默认语言
- CentOS修改系统默认语言
- Android 修改系统默认语言
- 修改 Android 系统默认语言
- linux 默认系统语言修改
- 修改 redhat 启动默认进入的模式
- ubuntu 修改默认语言方法
- Fedora修改默认语言—中文改成英文
- Fedora修改默认语言—中文改成英文
- POJ-2002-Squares
- 杭电4349Xiao Ming's Hope
- Android:图解四种启动模式 及 实际应用场景讲解
- jQuery验证控件jquery.validate.js使用说明+中文API
- C++ enum的使用学习,一些基础内容的理解
- fedora、redhat默认系统语言的修改方法
- Java Socket网络编程的经典例子
- iOS Runtime总结(二)
- SpringMVC介绍之Validation
- HDOJ 2036 改革春风吹满地 (叉乘)
- 快速排序
- 找女朋友
- : bad ELF interpreter: No such file or directory问题
- HDU 4994 Revenge of Nim(博弈)