How do I display history and time in Linux?

Danh Trịnh

New member
How do I display history and time in Linux?
Answer
Users set
the HISTTIMEFORMAT variable
. Bash uses its value to the format string to show the date/time stamp associated with each history entry displayed by the built-in history command. In other words, when this variable is set, time stamps are written to the history file so they may be preserved across shell sessions.
 

Tìm kiếm

Back
Top