Difference between revisions of "HISTTIMEFORMAT"
Jump to navigation
Jump to search
↑ https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
Line 2: | Line 2: | ||
* <code>echo '[[export]] [[HISTTIMEFORMAT]]="%d/%m/%y %T "' >> ~/.[[bash_profile]]</code><ref>https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/</ref> | * <code>echo '[[export]] [[HISTTIMEFORMAT]]="%d/%m/%y %T "' >> ~/.[[bash_profile]]</code><ref>https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/</ref> | ||
+ | |||
+ | HISTTIMEFORMAT="%F %T " | ||
== Related == | == Related == |
Latest revision as of 10:06, 18 August 2023
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
[1]
HISTTIMEFORMAT="%F %T "
Related[edit]
See also[edit]
- Bash history:
history[ -a | -c | -r ]
,history --help
,~/.bash_history
,HISTFILE, HISTSIZE, HISTTIMEFORMAT, HSTR
Advertising: