服务器内汉化
本文最后更新于28 天前,其中的信息可能已经过时,如有错误请发送邮件到big_fw@foxmail.com

第一步:vim ~/.bashrc

编辑成:

.bashrc
User specific aliases and functions

alias rm=’rm -i’
alias egrep=’egrep –color=auto’
alias fgrep=’fgrep –color=auto’
alias grep=’grep –color=auto’
alias la=’ls -lAh’
alias ll=’ls -lh’
alias ls=’ls –color=auto’
alias cp=’cp -i’
alias mv=’mv -i’
alias cdnet=’cd /etc/sysconfig/network-scripts/’

Source global definitions

if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ $(id -u) -eq 0 ]; then
export PS1='[[\e[0;32;40m]\u[\e[0;37;40m]@\h: [\e[0;35;40m]\w[\e[m]]# ‘
else
export PS1='[[\e[0;34;40m]\u[\e[0;37;40m]@\h: [\e[0;35;40m]\w[\e[m]]$ ‘
fi
export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN:zh
export LC_ALL=zh_CN.UTF-8

退出后

第二步:
source ~/.bashrc

第三步:
locale

文末附加内容
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇