How to Set Time, Date in Linux

To have the correct time and date in Linux is very important, a lot of things depends on it. It does not matter if you are using Linux to power your personal computer or you have a Linux server. The server and system clock needs to be on time.

Linux check date from command line

date

Output :

Set time and date from the command line

Change Time By Manually #timedatectl set-time HH:MM:SS
Change Date By Manually #timedatectl set-time YYYY-MM-DD

To display the current date and time #timedatectl

Leave a Comment

Your email address will not be published. Required fields are marked *