date 显示或者修改系统时间与日期,只有超级用户才能用date命令设置和修改时间,普通用户只能显示时间 相关参数 -s 设置设置时间,格式为 Y-m-d H:M:S -d 对日期进行运算, +增加时间,-减少时间 格式为(正则表达式) [-+]\d+(year|month|day|Hour|minute|second) +% 格式化显示时间 +% 相关参数 H 24制显示小时 I 12制显示小时 M 显示分钟 S 显示秒 p 上午则显示AM,下午则显示PM r …
转载于:https://www.cnblogs.com/LouisZJ/p/8554991.html [root@nginx ~]# timedatectl --help timedatectl [OPTIONS...] COMMAND ... Query or change system time and date settings. -h --help Show this help message --version Show package version --no-pager Do no…