When I execute command line (linux) I want to know what time there were executed when I scroll up my terminal window. I saw this once setup in linux environment but how to do that?
You need to set your prompt variable (PS1
). Something like the following should get you going:
<~/temp>$ export PS1="[\$(date +%k:%M)]> "
[12:16]>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With