Linux Tux logoOk, I don't know how this can be useful to anyone but anyway! Just in case you are in the imaginary condition where you need a digital clock displaying current time continuously and all you have is a Linux terminal in front of you here is what you can do.

Just type:

watch -t -n 1 date +%T

watch command executes a program periodically, showing output fullscreen and date +%T shows current time. This is what you'll get on your screen!

Terminal digital clock

Comments (2)

Subscribe to this comment's feed
Larger version
0
I posted this as a response over at commandlinefu.com, too. Here's the command for a larger version:

watch -t -n 1 "date +%T | xargs banner"
taborj , October 03, 2012
...
axel
Thanks for the reply taborj. I didn't know the banner command!

In fact in Archlinux, which I am using, banner can be installed only through AUR. It isn't in the official repositories.
axel , October 03, 2012

Write comment

smaller | bigger
security image
Write the displayed characters

busy

Linux

Login Form

Follow me on...

  • Facebook
  • Twitter
  • Google+: u/0/b/113039112812192417058/
  • Digg
  • Reddit: myguides
  • RSS Feed
  • e-mail

Member Login