Linux, display clock command line



This is how you to show a clock on linux shell:

while true
do
  time=`date +%r`
  printf "\r${time}"
Done

Or

watch -n 1 -t



Any thoughts?

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Loading more content...