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