In this article we will show you how to set the time, date and timezone within Ubuntu.
- Set the time zone
- Set the time and date
- Sync the hwclock with the current time and date
Below are the commands that are required. For the date command this will set the time and date to 25th July 22:17. The syntax is ‘date MMDDhhmmYYYY’.
timedatectl set-timezone GTM
To confirm your machine is set with the right time and date run the following commands :
[root@server ~]# date
Sun Jul 25 22:38:47 GMT 2010
[root@server ~]# hwclock
Sun 25 Jul 2010 10:38:51 PM GMT -0.125883 seconds
- How to Configure a BIND Server on Ubuntu - March 15, 2018
- What is a BGP Confederation? - March 6, 2018
- Cisco – What is BGP ORF (Outbound Route Filtering)? - March 5, 2018
Want to become a Linux expert?
Here is our hand-picked selection of the best courses you can find online:
Linux Mastery course
Linux Administration Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial