Home >Operation and Maintenance >Linux Operation and Maintenance >How to modify time in linux
In Linux, you can use the date command to modify the time. The function of this command is to display or set the date and time of the system. You can set the time according to the specified format. The syntax is "date -s modified time".
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
The Linux date command can be used to display or set the system date and time. In terms of display, the user can set the format to be displayed. The format is set to A plus sign followed by several tags, the list of available tags is as follows:
##The syntax is:date [-u] [-d datestr] [-s datestr] [--utc] [--universal] [--date=datestr] [--set=datestr] [--help] [--version] [+FORMAT] [MMDDhhmm[[CC]YY][.ss]]Parameter description:
Linux video tutorial》
The above is the detailed content of How to modify time in linux. For more information, please follow other related articles on the PHP Chinese website!