vim /etc/profile

 

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

在以上內容加入下面這二行

HISTTIMEFORMAT='<%F %T>:'
export HISTTIMEFORMAT

馬上生效方式:  source /etc/profile

ex:

history_time.JPG

 

參考資料:http://justlink-linus.blogspot.com/2010/12/linux-history.html

arrow
arrow
    全站熱搜

    neo2124 發表在 痞客邦 留言(1) 人氣()