Change the time of your vps/dedi

It's very easy, you first need to remove the current time file

rm /etc/localtime

and replace it by the new one, you need to search the biggest city in the area you want
Here is the list : https://www.archlinux.org/packages/core/any/tzdata/files/
for the example let's take :

/usr/share/zoneinfo/right/Europe/Amsterdam


you simply need to do the command : ln -s /usr/share/zoneinfo/right/Europe/Amsterdam /etc/localtime
Replace the red text by the line you wish

Here are some examples : 
for Cairo :

ln -s /usr/share/zoneinfo/right/Africa/Cairo /etc/localtime

for Berlin :

ln -s /usr/share/zoneinfo/right/Europe/Berlin /etc/localtime


And then you can check the time with the command : date

  • 328 Usuários acharam útil
Esta resposta lhe foi útil?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Backup and Restore cPanel Accounts via SSH

a. How to create a backup of a cPanel Account via SSH?   1. Log-in to the SSH as the Root...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

Change permissions using find command

On a Linux server, if you are in need of changing the permissions of a bulk amount of files or...

Create and Manage FTP Accounts in VestaCP

In this tutorial, we can discuss about how to create and manage FTP accounts in VestaCP. Follow...