CentOS How To's

How to Change Server Time in CentOS

I just usually use HKT because it is the easiest and it is the same as PHT. (Philippines Time)

1. Open a SSH/Terminal and type the following commands, and for windows user you can used putty to connect to server or you can access the Terminal by logging into VNC and right-clicking on the background, then select ‘Terminal’.

Type in terminal to check your current time that has been setup.

Output on my linux CentOS VPS:

[root@localhost ~]# ln -sf /usr/share/zoneinfo/Hongkong /etc/localtime
[root@localhost ~]# date
Fri Dec 26 10:33:32 PHT 2014
[root@localhost ~]#

Note:
The first two letters is LN in lower-case.

I started blogging around 2011 at #Ubuntupirates, #ProjectX and #pir8geek, I’m currently working as Network/Linux SysAdmin.

I’m a Linux,opensource advocate and interested in network security and InfoSec.

Leave a Reply