[[email protected] src]# echo $LANG
zh_CN.UTF-8
[[email protected] src]# locale -a | more
aa_DJ
aa_DJ.iso88591
aa_DJ.utf8
aa_ER
…省略部分輸出…
#查詢支援的語系
[[email protected] src]# locale -a | wc -l
735
#實在太多,這裡只統計數量
[[email protected] src]# locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8n
LC_NAME="zh_CN.U 丁 F-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8n
LC_MEASUREMENT="zh_CN.U 丁 F-8"
LC_IDENTIFICATI0N=Mzh_CN.UTF-8M
LC_ALL=
[[email protected] src]# cat /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
[[email protected] src]# echo $LANG
zh_CN.UTF-8
#當前使用遠端連線工具,只要語系正確,就可以正確顯示中文
[[email protected] src]# df
檔案系統 1K-塊 已用 可用 已用% 掛載點
/dev/sda3 19923216 1813532 17097616 10%/
tmpfs 312672 0 312672 0%/dev/shm
/dev/sda1 198337 26359 161738 15%/boot
#使用df命令可以看到中文是正常顯示的