linux-history显示历史命令执行时间

vim  ~/.bashrc 或者 ~/.bash_profile  python

增长:export HISTTIMEFORMAT="%F %T  "  vim

一次会话的话先执行bash

export HISTTIMEFORMAT= "%F %T  "  

而后使用history 命令就好了spa

history 500|grep get_charge_by_month  get

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

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

相关文章
相关标签/搜索