Home > Operation and Maintenance > Linux Operation and Maintenance > How to check the current time in Linux system

How to check the current time in Linux system

王林
Release: 2020-06-20 14:10:50
Original
9579 people have browsed it

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
Copy after login

(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
Copy after login

Set the system date Command to set the time to 5:55:55 pm

Command:

date -s 17:55:55
Copy after login

3. Write the current time and date into the BIOS to avoid invalidation after restarting

Command :

hwclock -w
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template