Changer un fuseau horaire sur le serveur Redhat 7 Linux est une tâche facile qui peut être effectuée sur une ligne de commande avec quelques commandes. Trouvez d'abord votre fuseau horaire en utilisant timedatectl
commande. La commande Linux suivante listera tous les fuseaux horaires :
[root@rhel7 ~]# timedatectl list-timezones
Pour affiner la recherche, vous pouvez utiliser grep pour rechercher une ville spécifique. Par exemple :
[root@rhel7 ~]# timedatectl list-timezones | grep -i bratislava Europe/Bratislava
Dans la dernière étape, nous utilisons simplement timedatectl
commande pour définir un nouveau fuseau horaire. Voici notre fuseau horaire actuel :
[root@rhel7 ~]# date Thu Dec 11 08:01:53 EST 2014
Ensuite, nous changeons de fuseau horaire :
[root@rhel7 ~]# timedatectl set-timezone Europe/Bratislava
Pour confirmer que vous avez bien changé votre fuseau horaire, exécutez date
commande à nouveau :
[root@rhel7 ~]# date Wed Dec 10 22:03:37 CET 2014