L
L
Lali Kinux2018-09-22 12:24:51
linux
Lali Kinux, 2018-09-22 12:24:51

How is the clock in the terminal?

How to make that in the Linux terminal from the left of [email protected]: (for example) there was a command entry time.
Example: [12:32:47] [email protected]:
I hope my question is clear, thanks!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2018-09-22
@lalikinux

https://stackoverflow.com/questions/9200862/short-...

PS1="\$(date '+%H:%M:%S') > "
export PS1

If more whistle-blowing is required - look for how to configure zsh and suitable plugins

A
Andrey Burov, 2018-09-22
@BuriK666

https://bneijt.nl/blog/post/add-a-timestamp-to-you...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question