mymenu

来自「linux中shell编程,是操作系统的上机题,后台可以增加用户」· 代码 · 共 29 行

TXT
29
字号
while truedoecho  -e "\n"echo -e "\n ◆ the menu before login in ◆"echo -e "\n ==============================="echo "  0.exit 1. show user 2.show the time 3. add   4."echo -e "\n"echo -e " please choose(0-7):\c"read zcase $z in0)clearexit;;1)clearecho "name pid logintime"echo "===================================="whotty=`tty |cut -f3 -d"/"`echo "\n"echo "\n name: is $tty";;2)cleardate '+ today: %Y Y %m M %d D,week %w 'echo -e "\n"date '+ time:%T';;3)clearcd /root/Desktop/My./c1;;esacdone

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?