How to get timestamp for history command?
Hi Folks,
I need to get output of history command with time format. I have to change it in kernel code and needs to compile the code. Going to install the compiled code in server. Please help me where to change in kernel code. Thanks, G.Ananda Babu. |
That isn't a function of the Kernel AFAIK. It's bash.
Code:
echo "export HISTTIMEFORMAT=\"[%h/%d .. %H:%M:%S] - \"" >> /etc/bashrc |
All times are GMT -5. The time now is 08:58 PM. |