📄 before_course.sh
字号:
#! /bin/sh -. $HOME/cms/include/cms.hbefore_course(){while :do #娓呴櫎灞忓箷 erase_fun 4 20 #闅愯棌鍏夋爣 hide_cursor xy 6 22 "***Collation before Course***" xy 7 24 "1. Modify the system time" xy 8 24 "2. Create directory" xy 9 24 "3. Open the authority" xy 10 24 "q. Return " xy 12 24 "Please Choice[1|2|3|q|Q]:" display_cursor read _CHOICE_8 case $_CHOICE_8 in 1)xy 13 10 "The current time of the system is `date +%Y-%m-%d,%H:%M:%S`" xy 14 10 "Please input the date you want to modify(eg.001107):" read _DATE xy 15 10 "Please input the time you want to modify(just like 14:36:00):" read _TIME date -s $_DATE $_TIME xy 16 10 "The time of the system after you modify is `date +%Y-%m-%d,%H:%M:%S`" read key ;; 2)mkdir /home/$_USER_ID xy 14 10 "Create a directory for User in directory home(as your userID)...";; 3)chmod -R 777 /home/$_USER_ID xy 14 10 "User $_USER_ID have all of the authority of the directory now...";; q|Q)return 0;; *)hint_msg "Wrong choice [${_CHOICE_8}],Please choice [1|2|3|q|Q]..." esacdone }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -