deeejay icon

Bash - history command with timestamp

deeejay | PRO | 08/20/15 04:03:20 PM UTC | 0 ⭐ | 364 👁️ | Never ⏰ | []
Bash |

580 B

|

None

|

0 👍

/

0 👎

Execute export below, then execute history
 
history with timestamp
===
i.e. 994  2008-10-16 02:27:40 exit
export HISTTIMEFORMAT=”%F %T ”
 
i.e. 1051 : Wed 16 Jun 2010 08:27:30 PM IST : df -h
export HISTTIMEFORMAT=”: %c : ”
 
i.e. day month time
export HISTTIMEFORMAT=”%d %m %T ”
 
i.e. 458 Sat Sep 22 – 07:37:29 PM history
export HISTTIMEFORMAT=”%a %h %d – %r ”
 
i.e. 460 Saturday Sep 22 – 07:39:54 PM history
export HISTTIMEFORMAT=”%A %h %d – %r ”
 
i.e. 460 Saturday September 22 – 07:39:54 PM history
export HISTTIMEFORMAT=”%A %B %d – %r ”

Comments