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

Linux shell系統(tǒng)下執(zhí)行export及使用man bash

運(yùn)維 系統(tǒng)運(yùn)維
對于Linux shell的默認(rèn)語言應(yīng)該在系統(tǒng)級的文件中(/etc/profile)修改,以便修改的結(jié)果可以被每一個用戶繼承:打開/etc/profile,直接在其上,找不到關(guān)于LANG變量的設(shè)置命令,但細(xì)心觀察,該腳本還執(zhí)行了其他腳本:for i in /etc/profile.d/*.sh ; doif [ -r "$i" ]; then . $i fi done。
給大家推薦一款很不錯的Linux shell系統(tǒng)很有學(xué)習(xí)價值,這里我主要講解Linux shell系統(tǒng)的應(yīng)用,包括介紹Linux shell知識等方面。

一、在Linux shell下,執(zhí)行export:

declare -x LANG="en_US"這個LANE環(huán)境變量,就是我們希望去修改的,但是在哪里修改,比較合適呢?

二、Linux 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 shell的默認(rèn)語言

應(yīng)該在系統(tǒng)級的文件中(/etc/profile)修改,以便修改的結(jié)果可以被每一個用戶繼承:打開/etc/profile,直接在其上,找不到關(guān)于LANG變量的設(shè)置命令,但細(xì)心觀察,該腳本還執(zhí)行了其他腳本:for i in /etc/profile.d/*.sh ; doif [ -r "$i" ]; then . $i fi done

四、到/etc/profile.d/目錄下,查看這些*.sh的腳本,發(fā)現(xiàn)了一個名為"lang.sh"的文件,應(yīng)該就是它了:

打開/etc/profile.d/lang.sh,開頭幾句:for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do[ -f $langfile ] && . $langfile && sourced=1done這個/etc/sysconfig/i18n,就是設(shè)置系統(tǒng)默認(rèn)語言的地方,對于我的系統(tǒng),現(xiàn)在它的內(nèi)容如下:

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

如果,你希望系統(tǒng)的默認(rèn)語言變更為UTF-8,可以把LANG修改為:LANG="en_US.UTF-8"

【編輯推薦】

  1. 深度淺析種類模式Linux shell編程
  2. 暢談簡介Linux shell內(nèi)核傳遞命令
  3. 完全講解終級Linux shell命令模式
  4. 全面分析討論Linux Shell編程
  5. 簡要介紹Linux shell命令的收集編程語言
責(zé)任編輯:佚名 來源: CSDN
相關(guān)推薦

2010-06-23 11:09:14

Linux Bash

2009-12-03 10:07:55

Linuxman命令使用技巧

2010-06-23 16:35:50

Linux Bash

2010-06-23 17:37:14

Linux Bash

2010-06-23 17:34:03

Linux Bash

2010-06-23 11:17:09

Linux Bash

2010-06-23 16:31:10

Linux Bash

2010-06-23 17:29:07

Linux Bash

2023-10-10 09:27:17

Arch Linux命令

2010-06-23 17:16:33

Linux Bash

2013-12-20 10:20:34

2011-08-11 16:37:11

BASH_BUILTI中文man

2010-06-23 16:05:36

Linux Bash

2010-03-11 13:52:02

Linux MAN

2023-07-27 17:41:02

BashZshFish

2014-03-13 16:34:04

LinuxBashKSH shel

2010-06-23 15:55:36

Linux Bash

2010-06-23 17:07:47

Linux Bash

2009-12-25 09:47:05

LinuxShell編程bash

2017-03-01 11:46:24

Linuxscreen命令示例
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 最近日韩中文字幕 | 国产一区二区三区在线 | 国产精品一区二 | 亚洲高清视频在线 | 国产欧美精品 | 亚洲免费精品 | 欧美国产激情 | 亚洲精品乱码久久久久久按摩观 | 亚洲成人精品一区 | av网站在线看 | 亚洲视频一区二区三区四区 | 中文字幕电影在线观看 | 欧美精品久久久 | 国产精品免费一区二区三区 | 免费的色网站 | 亚洲成人精品 | 亚洲三区在线 | 91污在线| 色www精品视频在线观看 | 亚洲国产精品91 | 国产精品一区二区三 | 情侣黄网站免费看 | 午夜精品久久久 | 国产在线精品一区 | 黄色在线网站 | 亚洲国产精品一区二区第一页 | 欧美激情一区二区 | 亚洲综合色丁香婷婷六月图片 | 五月网婷婷 | 日韩精品一二三 | 国产免费拔擦拔擦8x高清 | 精品一区二区视频 | av片免费 | 日韩一区精品 | 日本精品视频一区二区 | 国产传媒在线播放 | japanhdxxxx裸体 | 天堂成人国产精品一区 | 国产亚洲精品久久久久动 | 国产在线1区 | 天天操天天拍 |