I was wondering if it was possible to add timestamps to terminal prompts, and if so, how could I achieve this?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
Add this line to the .bashrc file
So the output will be something like:
|
|||
|
|
|
Instead of adding the date to the prompt itself, you could add the date just before your prompt by placing the following line at the top of your
In its current form it will work on anyone's system without amendment as it reads the
|
|||
|
|
