首页 > 其他 > 详细

history

时间:2016-02-18 12:06:07      阅读:131      评论:0      收藏:0      [点我收藏+]

centos6.5系统下,发现一个问题,history -c后,历史命令被清空,但退出CRT再登入时发现还有历史命令,这是什么情况呢?

[root@localhost ~]# find / -name *history   #查找相关文件

/root/.bash_history

/usr/bin/ck-history

/usr/share/doc/pam-1.1.1/txts/README.pam_pwhistory

/var/lib/yum/history

/var/log/ConsoleKit/history


[root@localhost ~]# >/root/.bash_history   #执行该命令 这样,再登入CRT时历史命令就被清空了。


本文出自 “青春邓勇” 博客,请务必保留此出处http://dengyong.blog.51cto.com/8409869/1742936

history

原文:http://dengyong.blog.51cto.com/8409869/1742936

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!