Home > Article > Operation and Maintenance > How to check the current time in Linux system
Linux system can check the current time by executing the date command.
The details are as follows:
1. View time and date
Command:
date
(Recommended tutorial: linux tutorial)
2. Set the time and date
For example: the command to set the system date to November 3, 2009
Command:
date -s 11/03/2009
Set the system date Command to set the time to 5:55:55 pm
Command:
date -s 17:55:55
3. Write the current time and date into the BIOS to avoid invalidation after restarting
Command :
hwclock -w
The above is the detailed content of How to check the current time in Linux system. For more information, please follow other related articles on the PHP Chinese website!