Linux-基础(centos6.9)-超时时间-字符集-history

配置字符集

LANG=zh_cn.utf-8

配置超时

export TMOUT=10 (10秒钟)

命令:history

-d: 后跟指定行号删除命令   history -d 10 删除第十行

-c: 清除所有历史记录

export HISTSIZE = 5 (命令行)命令行历史纪录数量

export HISTFILESIZE = 5  (文件)显示历史条目数为5 ,对应文件  ~/.bash_history

永久生效:配置/etc/profile

source /etc/profile   source命令使其立即生效

posted @ 2017-08-11 23:53  TimeTree  阅读(604)  评论(0编辑  收藏  举报