Linux common commands -63: date

The date command is used to display or set the system date and time.

Syntax format: date [options] [+output form]

Common parameters:

Example

 # 显示当前系统时间date # 设置系统时间date -s "20220320 12:00:00" # 只设置日期date -s 03/20/2022 # 只修改时间date -s 12:00:00

This article is reprinted from https://xugaoxiang.com/2022/06/19/linux-cmds-63-date/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.