Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1420676
  • 博文数量: 842
  • 博客积分: 12411
  • 博客等级: 上将
  • 技术积分: 5772
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-14 14:43
文章分类

全部博文(842)

文章存档

2013年(157)

2012年(685)

分类: LINUX

2013-03-22 18:04:17

Linux/CentOS中环境变量配置

 

/etc/profile(或~/.bash_profile)中加入以下配置信息:

 

alias dir='dir --color=auto'

alias c='clear'

alias h='help'

alias pt='pstree'

alias df='df -h'

alias du='du -h -c'

alias ls='ls --color=auto -F -a -h'

alias rm='rm --preserve-root'

alias grep='grep --color=auto'

alias fgrep='fgrep --color=auto'

alias egrep='egrep --color=auto'

 

HISTFILESIZE=5000  #能记录的最多命令数

HISTSIZE=5000  #你希望历史命令保存多少条

 

export HISTTIMEFORMAT="%F %T `whoami` "

 

 

然后,source /etc/profile即可。

                                                                                          2013-03-10 1726

阅读(836) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~