经常在终端下工作,有时需要关闭全屏看时间非常不方便,想着有什么办法在屏幕的右上角一直显示个时间就好了:
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&            //显示时分的
 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-05-28
  • 2022-03-04
  • 2022-01-27
  • 2022-12-23
  • 2021-12-03
  • 2021-09-04
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2021-10-26
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案