歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> solaris使用別名設置語言環境

solaris使用別名設置語言環境

日期:2017/2/28 11:13:17   编辑:關於Unix


使用別名在終端窗口中更改語言環境,而不必每次都鍵入長命令行或編輯
.dtlogin 文件並運行source。
 如何設置Korn Shell 的語言環境別名
 在.profile 文件中添加如下所示的別名。
alias chn "export LANG=zh; /bin/stty cs8 -istrip defeucw"
alias chn_GBK "export LANG=zh.GBK; /bin/stty cs8 -istrip \defeucw"
alias asc "export LANG=C; /bin/stty cs7 istrip defeucw"
alias chn "export LANG=zh; /bin/stty cs8 -istrip defeucw"
 如何設置C Shell 的語言環境別名
 在.cshrc 文件中添加如下所示的別名。
alias chn_EUC "setenv LANG zh; /bin/stty cs8 -istrip defeucw"
alias chn_GBK "setenv LANG zh.GBK; /bin/stty cs8 -istrip \defeucw"
alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw"
alias chn_UTF-8 "setenv LANG=zh.UTF-8; /bin/stty cs8 -istrip defeucw"
Copyright © Linux教程網 All Rights Reserved