Shell Programming Blog Shell Programming Blog

Saturday, 13 October 2012

linux Bash Scripting: how to display the history of commands along with the timestamp

abu sittik | 10:35 | |

Bash Linux Unix shell scripting

Usually the history command will display the command number and the command when you execute the command from the command line. Suppose if you want to add the timestamp along with the command history for auditing purpose, you can do it using the HISTTIMEFORMAT as shown below.



Post a Comment

Don't just read and walk away, Your Feedback Is Always Appreciated. I will try to reply to your queries as soon as time allows.

1. If your question is unrelated to this article, please use our Facebook Page.
2. Please always make use of your name in the comment box instead of anonymous so that i can respond to you through your name and don't make use of Names such as "Admin" or "ADMIN" if you want your Comment to be published.
3. Please do not spam, spam comments will be deleted immediately upon my review.

Mohamed Abubakar Sittik A


Shell Programming Copyright © 2012 Shell Programming theme is Designed by Abusittik, Shell Programming