作家
登录

Linux Bash Shell系统的应用详解

作者: 来源: 2012-06-12 21:13:13 阅读 我要评论

给大家推荐一款很不错的Linux Bash Shell系统很有学习价值,这里我主要讲解Linux shell系统的应用,包括介绍Linux shell知识等方面。

一、在Linux Bash Shell下,执行export:

declare -x LANG="en_US"这个LANE环境变量,就是我们希望去修改的,但是在哪里修改,比较合适呢?

二、Linux Bash Shell使用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>

  • /etc/profile  
  • /.bash_profile  
  • /.bash_login  
  • /.profile 
  • 三、对于Linux Bash Shell的默认语言

    应该在系统级的文件中(/etc/profile)修改,以便修改的结果可以被每一个用户继承:打开/etc/profile,直接在其上,找不到关于LANG变量的设置命令,但细心观察,该脚本还执行了其他脚本:for i in /etc/profile.d/*.sh ; doif [ -r "$i" ]; then . $i fi done

    四、到/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,就是设置系统默认语言的地方,对于我的系统,现在它的内容如下:

    1. LANG="en_US" 
    2. SUPPORTED="en_US:en" 
    3. SYSFONT="lat0-sun16" 
    4. SYSFONTACM="iso01" 

    如果,你希望系统的默认语言变更为UTF-8,可以把LANG修改为:LANG="en_US.UTF-8"

    【编辑推荐】

    1. 深度浅析种类模式Linux shell编程
    2. 畅谈简介Linux shell内核传递命令
    3. 完全讲解终级Linux shell命令模式
    4. 全面分析讨论Linux Shell编程
    5. 简要介绍Linux shell命令的收集编程语言


      推荐阅读

      Linux Bash命令关于快捷键应用

    Linux bash快捷键是很多习惯使用快捷键的朋友们刚刚接触Linux的人想要知道的,但是网上介绍快捷键的文章并不是很多,这里要注意Linux的不同的bash会有不同的效果,自已一定要注意使用的bash版本,Linux bash快捷键也>>>详细阅读


    本文标题:Linux Bash Shell系统的应用详解

    地址:http://www.17bianji.com/yunwei/2262.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)