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

Related posts:

  1. Add Hostname, Date, Time, Uptime, Load Average to Linux Terminal Title This tip is really useful if you need/want to monitor multiple servers at the same time. This Tip works, as...
  2. PHP: Loop through dates (from date to date) with strtotime() function This is very easy way loop through dates (from date to date) with PHP strtotime() function. This example only echo...
  3. Google search from Linux and UNIX command line Today I started thinking that how cool is do some Google searches straight from command line. First I try to...
  4. Linux Tip: Create and Append to Temporary File Without Editor This is a very typical case, the need to create a temp file on the command line quickly. Opening editor,...
  5. Linux: Enable Laptop Touchpad Vertical Scrolling and Tapping from Command Line I noticed that the Fedora Linux with KDE desktop, has reasonably poor support for laptop touchpad adjustment. For example, the...

About the Author

Hi, I'm JR and the Founder of if not true then false. I am a software developer, and I have over ten years experience in programming. I'm big fan of Linux and Open Source. And normally I use just Linux environments.

Like If (!1) 0 on Facebook: