首页 > 技术文章 > Linux-基础(centos6.9)-超时时间-字符集-history

mirrorlake 2017-08-11 23:53 原文

配置字符集

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命令使其立即生效

推荐阅读