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

terminal-logo-small

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 &

Date and time on terminal title

Follow If Not True Then False Updates!
  1. Add Hostname, Date, Time, Uptime, Load Average to Linux Terminal Title
  2. PHP: Loop through dates (from date to date) with strtotime() function
  3. Linux: Create Text File on Linux Shell / Command Line
  4. Nautilus “Open in Terminal” on Fedora/CentOS/Red Hat (RHEL)
  5. Google search from Linux and UNIX command line

Leave a Comment

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Bear