Tuesday, April 30, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 12889  / 3 Years ago, sat, july 24, 2021, 7:28:29

When I start terminal in Ubuntu, I see:



ilya@HOST:~$


I need to add a timestamp to this, something like:



2011-10-09T09:32:00 ilya@HOST:~$


How can I configure this?


More From » command-line

 Answers
5

There is a good article about how to change your bash prompt and what all the special symbols (like h) mean. It also has a link about how to change the colors in you prompt.



As far as applying the changes in your .bashrc, just run source ~/.bashrc


[#43157] Saturday, July 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
berlorful

Total Points: 346
Total Questions: 90
Total Answers: 99

Location: Monaco
Member since Tue, Nov 30, 2021
2 Years ago
berlorful questions
Thu, Sep 2, 21, 10:12, 3 Years ago
Sun, May 9, 21, 20:55, 3 Years ago
Mon, Jan 16, 23, 23:19, 1 Year ago
Mon, Aug 29, 22, 05:43, 2 Years ago
;