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