Vương Tuấn Khải
New member
How do I set timestamp history?
Answer
So, to enable timestamp in history command output, we must configure
“HISTTIMEFORMAT” variable. Save and exit the file. If you want to enable timestamp in history command for all local users too, then define the variable HISTTIMEFORMAT in /etc/profile file instead of root user’s ~/. bashrc file.
Answer
So, to enable timestamp in history command output, we must configure
“HISTTIMEFORMAT” variable. Save and exit the file. If you want to enable timestamp in history command for all local users too, then define the variable HISTTIMEFORMAT in /etc/profile file instead of root user’s ~/. bashrc file.