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

-------------------- 阑心而慧智,心静而致远. --------------------
原文地址:https://www.cnblogs.com/mirrorlake/p/7348459.html