Question: How do I find out what time I executed a command previously on Unix OS? The history command doesn’t display timestamp. Answer: Set HISTTIMEFORMAT as shown below. Please note that there is a space before the last single-quotes. $ export HISTTIMEFORMAT='%F %T ' After the above setting, history command will display timestamp in front [...]
My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about