Display date-clock with simple bash command and while loop

Here is a simple example on how to display date/watch with simple bash command:

$ while true; do clear; date; sleep 1; done

Leave a Reply

You must be logged in to post a comment.