Posted: 9 December 2014. At: 8:50 AM. This was 10 years ago. Post ID: 7953
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Create a cool looking clock in your terminal.

This simple little script will print an updating clock in the terminal.

#!/bin/sh
 
watch -t -n 1 'date +%H:%M:%S | figlet'

This version will print a cow that tells you the time.

#!/bin/sh
 
watch -t -n 1 'date +%H:%M:%S | cowsay'

And finally, this prints the time using blocky characters.

#!/bin/sh
 
watch -t -n 1 'date +%H:%M:%S | toilet'
My updating clock in action.
My updating clock in action.

This is a cool addition to your Linux desktop, this prints the time, and updates every second, this is very useful indeed.

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.