

The ‘timedatectl set-time’ command is used to set the date. To adjust the date, write the following command in the terminal: $ timedatectl set-time The correct format is HH:MM:SS in which HH: Hours MM: Minutes SS: Seconds. The ‘timedatectl set-time’ command is used to adjust the time. To change the time of your operating system you can use the following command: $ timedatectl set-time 16:19:00 To check all available time zone in your system, write the following command on the terminal: $ timedatectl list-timezones To check the current Time zone of your operating system write following command: $ timedatectl To display the already adjusted date and time on your system, type the following command: $ timedatectl status Open the terminal window using shortcut keys ‘Ctrl + Alt + t’.

The following steps are involved to set the date and time by using the terminal:

You can also use the ‘timedatectl’ command to change the date and time zone. The command ‘timedatectl’ allows us to set the time of the system clock. In this tutorial we will show you how to set the date and time in Rocky Linux 8, AlmaLinux 8, and CentOS 8 both from the GUI and from the shell (command line). And of course, if you’re working on the desktop, the clock should show the correct time 🙂
