GNU/Linux >> Tutoriels Linux >  >> Linux

Comment changer un fuseau horaire sur le serveur RHEL7 Linux

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

Linux
  1. Comment changer un nom d'hôte statique sur Linux RHEL7 avec hostnamectl

  2. Comment changer les paramètres régionaux du système sur RHEL7 Linux

  3. Comment surveiller votre serveur Linux ?

  4. Comment changer le mot de passe sous Linux (commande passwd)

  5. Comment utiliser la commande Su sous Linux

Commande Chmod - Comment modifier les autorisations de fichiers sous Linux

Comment définir ou modifier le fuseau horaire sur Debian 11

Comment changer d'utilisateur sous Linux

Comment changer l'adresse IP sous Linux

Comment vérifier la disponibilité de votre serveur Linux

Comment changer le fuseau horaire sur le serveur Ubuntu 18.04 ?