#方法1
[root@192 ~]# date +%Y-%m-%d\ %T 2020-10-03 10:32:49**** #方法2 [root@192 ~]# echo $(date +%F%n%T) 2020-10-03 10:40:25
#方法3 [root@192 ~]# date “+%Y-%m-%d %H:%M:%S” 2020-10-03 10:48:05