Linux Command History with date and time

前端 未结 5 1732
挽巷
挽巷 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 12:51

    Try this:

    > HISTTIMEFORMAT="%d/%m/%y %T "
    
    > history
    

    You can adjust the format to your liking, of course.

提交回复
热议问题