Centos 8 时间显示命令分享


1、查看操作系统的当前时间(包含日期、时间)
命令:date
结果:2019年 10月 12日 星期六 14:35:17 CST
 
2、按自己的显示格式,输出结果:
命令1:date "+%Y-%m-%d,%H:%M:%S"
命令2:date "+%Y-%m-%d,%H:%M:%S,Today is %j day of this year."
 
3、命令:date "+Today is %j day of this year."
结果:Today is 285 day of this year.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM