History - Debian add timestamp: Difference between revisions

From Skytech
Jump to navigation Jump to search
 
Line 2: Line 2:


Edit
Edit

<code>
<code>
/etc/bash.bashrc
/etc/bash.bashrc
<code>
</code>

Add
Add
<pre>
<pre>

Latest revision as of 14:45, 5 September 2012

Add timestamp in history data on debian

Edit

/etc/bash.bashrc

Add

export HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S "

At the end.