这个命令不错,需要修改

经常在终端下工作,有时需要关闭全屏看时间非常不方便,想着有什么办法在屏幕的右上角一直显示个时间就好了:
while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-8));date +%T;tput rc;done&            //显示时分秒的
while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-5));date +%R;tput rc;done&            //显示时分的
 
posted @ 2021-02-21 17:17  叕叒双又  阅读(46)  评论(0编辑  收藏  举报