BASH - Display Clock within Shell

The following command will place a clock within the top right corner of your shell.

while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-25));date;tput rc;done &

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001