![change timezone linux centos 7 change timezone linux centos 7](https://4.bp.blogspot.com/-xgBCKikfqTg/XJ8VTnsVBEI/AAAAAAAAAHU/IJrZqJtlxFAN_DYYfmk8pqQNA4Nj9qK9gCLcBGAs/w1200-h630-p-k-no-nu/timedate%2Bstatus.png)
To change the current time for your Centos 7 system, you can run the following “timedatectl’ command with “set-time” option, type: timdatectl set-time Įxample: changing the current date to Dec 08 2019, type: timedatectl set-time CentOS 7 Changing the Current Time Using “timedatectl” You can see date, time and timezone information clearly with timedatectl. The command output will be something like this. Specified the value for “YYYY-MM-DD” like the following format. The timedatectl command is a new command utility for CentOS 7/RHEL, It's also a replacement for old traditional Linux date command.
![change timezone linux centos 7 change timezone linux centos 7](https://www.rootusers.com/wp-content/uploads/2017/01/login-mate-768x576.jpg)
If you want to change the current date for your system, just using “timedatectl” command with set-time option, type: timedatectl set-time CentOS 7 Changing the Current Date Using “timedatectl” Outputs: ~]# timedatectlįrom the above output of command “timedatectl”, you can see the local time of your system, Universal time, Real-time clock time(RTC), the current time zone, the status of the NTP synchronized, and others. To check the current date and time for your system, you can just simply issue the “timedatectl” command in command line interface, type: timedatectl CentOS/RHEL 7 and SLES 12 However, doing the same on CentOS7/RHEL 7 or SLES 12 causes an issue when running WANdisco’s replication products. #3 Changing the TimeZone using “timedatectl” command CentOS 7 Check The Current Date And Time For instance, on CentOS6 you can set the timezone by changing the file, /etc/localtime, either by a symlink to a timezone file or by replacing it. #2 Changing the current date and time using “timedatectl” command