Linux Command History with date and time

前端 未结 5 1730
挽巷
挽巷 2020-12-24 12:32

I wants to check on my linux system when which command was fired - at which date and time.

I fired commands like this:

history 50 

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 13:03

    Regarding this link you can make the first solution provided by krzyk permanent by executing:

    echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
    source ~/.bash_profile
    

提交回复
热议问题