poniedziałek, 7 marca 2016

Display date on the terminal

Display Date on the Terminal

The below command is a combination of several commands, better say it a script. For a person working at shell or terminal, without GUI seeing current system date is tedious job. You have to type ‘date‘ command to check today’s date.
Just execute the below command on you prompt and see the date and time on the above right corner of terminal.

root@tecmint [~]# while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &
 
 
tecmint.com 

Brak komentarzy:

Prześlij komentarz