topic
answer
1 answer
[root@centos7 ~]# date +'%F %T'
2019-07-23 10:21:35
2, the answer
[root@centos7 ~]# date +%A -d '-2 days'
星期日
3, the answer
[root@centos7 ~]# date -s '2019-08-07 06:05:10'
2019年 08月 07日 星期三 06:05:10 CST
4, answer
View issue helped by man pages, and then view or agetty mingetty help
- motd information is displayed after login, issue a prompt before landing
[root@centos7 ~]# cat /etc/issue
current terminel:\l
current time:\t
current hostname:\s
\S
Kernel \r on an \m
display effect:
5, answer
View Help shutdown
[root@centos7 ~]# shutdown 18:30 "今天18:30系统自动关机"
Shutdown scheduled for 三 2019-08-07 18:30:00 CST, use 'shutdown -c' to cancel.