成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Linux Bash Shell系統的應用詳解

運維 系統運維
對于Linux Bash Shell的默認語言應該在系統級的文件中(/etc/profile)修改,以便修改的結果可以被每一個用戶繼承:打開/etc/profile,直接在其上,找不到關于LANG變量的設置命令,但細心觀察,該腳本還執行了其他腳本:for i in /etc/profile.d/*.sh ; doif [ -r "$i" ]; then . $i fi done。

給大家推薦一款很不錯的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 one that exists and is readable.  The --noprofile option may be used when the shell is started to inhibit this behavior.

即bash在登錄時,會依次讀取這些配置文件:

  1. /etc/profile  
  2. /.bash_profile  
  3. /.bash_login  
  4. /.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命令的收集編程語言

 

責任編輯:chenqingxiang 來源: CSDN
相關推薦

2010-06-23 16:35:50

Linux Bash

2010-06-23 17:37:14

Linux Bash

2010-06-23 17:34:03

Linux Bash

2009-12-25 09:47:05

LinuxShell編程bash

2010-06-23 16:31:10

Linux Bash

2010-06-23 17:29:07

Linux Bash

2010-06-23 17:16:33

Linux Bash

2010-06-23 10:03:18

Linux Bash命

2010-02-03 14:57:18

Linux shell

2010-06-23 15:41:44

Linux Bash

2010-06-23 16:05:36

Linux Bash

2024-11-27 09:19:25

2023-07-27 17:41:02

BashZshFish

2011-09-28 11:14:35

Zshellzshbash shell

2012-01-18 09:46:32

Shell

2010-06-23 11:24:23

Linux Bash命

2022-03-24 11:35:30

LinuxXnosh Shel

2010-06-23 15:55:36

Linux Bash

2010-06-23 17:07:47

Linux Bash

2010-06-23 10:25:40

Linux Bash命
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 精品一区二区三区免费视频 | 无码一区二区三区视频 | 天天操天天插 | 日韩精品 电影一区 亚洲 | 久久久精 | 国产一区999 | 韩国成人在线视频 | 国产欧美在线一区二区 | 欧美综合自拍 | 999www视频免费观看 | 1区2区视频 | 亚洲国产成人精 | 欧美www在线 | 午夜小电影 | 美女视频一区 | 免费视频一区二区 | 欧美一区二区在线观看 | 国产亚洲一区二区三区 | 国产高清在线精品一区二区三区 | 天堂亚洲 | 91精品久久久久久久久久入口 | 黄色网址免费在线观看 | 日韩高清国产一区在线 | 日韩欧美在线观看视频网站 | 日韩高清国产一区在线 | av天空| 精品一区二区三区四区 | 黑人巨大精品欧美一区二区免费 | 91pao对白在线播放 | 一级黄a视频 | 两性午夜视频 | 亚洲一区二区三区 | 啪啪网页 | 亚洲麻豆 | 精品一区二区三区四区视频 | 欧美日韩在线免费 | 国产成人综合久久 | 欧美日韩毛片 | 欧美精品二区 | 亚洲一区日韩 | 欧美日韩国产精品一区二区 |