Add date and time to Linux terminal title (Gnome Terminal, xterm, urxvt, rxvt)

Here is easy way add date and time to Linux terminal title. This trick works at least following terminals Gnome Terminal, xterm, urxvt, rxvt.

Simply type the following command line:

while sleep 1 ; do echo -ne '\033]2;'`date`'\007'; done &

2 comments on “Add date and time to Linux terminal title (Gnome Terminal, xterm, urxvt, rxvt)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close