add:https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
--------------------------------------
zbash 添加方式
https://unix.stackexchange.com/questions/103398/datetime-stamp-when-running-history-command-in-zsh-shell
Then
---------------------------------------------------------
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
--------------------------------------
zbash 添加方式
https://unix.stackexchange.com/questions/103398/datetime-stamp-when-running-history-command-in-zsh-shell
Then
fc -li 100
works! It shows the recent 100 commands with timestamp :)---------------------------------------------------------
没有评论:
发表评论