随笔分类 -  history

摘要:原文地址:http://www.debugfs.com/?p=64给history命令添加时间戳通常,我们执行history命令时,就像这样: 1000 screen -S ac 1001 ls 1002 history但我们可以通过修改HISTTIMEFORMAT来给history命令的显示增加时间戳,这有时候也是审计所需要的[haoli@proudgather Desktop]$ export HISTTIMEFORMAT='%F %T '[haoli@proudgather ~]$ history | tail -4 1010 2010-06-12 08:51:41 ls 阅读全文
posted @ 2011-09-23 11:50 wangkangluo1 阅读(541) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示