vim  ~/.bashrc 或者 ~/.bash_profile  

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

一次会话的话先执行

export HISTTIMEFORMAT="%F %T  "  

然后使用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  

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2021-11-04
  • 2022-12-23
  • 2022-02-07
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案