L
L
littleguga2015-07-24 17:36:45
System administration
littleguga, 2015-07-24 17:36:45

Is it possible to display time next to commands in console?

Now:


[email protected]:~# crontab -l
no crontab for root

Can it be done like this:

[email protected][17:36:00]:~# crontab -l
no crontab for root

Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2015-07-24
@littleguga

PS1="\[\e]0;\[email protected]\h: \w\a\]${debian_chroot:+($debian_chroot)}\[email protected]\h:\w`date +[%H:%M: %S]`\$"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question