wang-yaz

vim  ~/.bashrc 或者 ~/.bash_profile  

增加:export HISTTIMEFORMAT="%F %T  "  

查看历史记录之前先执行:

export HISTTIMEFORMAT="%F %T  "  
 
重新打开shell执行history命令

然后使用history 命令就行了

history 500|grep get_charge_by_month  

1002  2014-09-02 10:17:34  history -500|grep get_charge_by_month  

1005  2014-09-02 10:26:41  history 500|grep get_charge_by_month  

分类:

技术点:

相关文章:

  • 2021-12-24
  • 2021-05-10
  • 2021-11-28
  • 2021-12-08
  • 2021-12-24
  • 2021-08-22
  • 2021-12-24
  • 2021-12-08
猜你喜欢
  • 2021-08-22
  • 2021-11-01
  • 2022-01-02
  • 2021-12-24
  • 2021-11-12
  • 2021-12-08
相关资源
相似解决方案