Difference between revisions of "Timestamp"

From WA2IAC Wiki
Jump to: navigation, search
m
 
Line 110: Line 110:
 
0swaps
 
0swaps
 
</pre>
 
</pre>
 +
 +
==Random==
 +
 +
===Shell History===
 +
 +
Shell History Timestamping
 +
 +
HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is “%F %T “.
 +
export HISTTIMEFORMAT="%F %T "
 +
 +
Execute history again and you will see the effect on the spot, bare in mind that the timestamp for command lines that executed at previous sessions may not valid, as the time was not tracked.

Latest revision as of 19:26, 10 July 2015