hotelpana.blogg.se

Change timezone linux terminal
Change timezone linux terminal












The current timezone can be quickly verified by checking the contents of /etc/timezone: cat /etc/timezoneĪlthough it would seem easy to simply update the content of that file, that won't be enough for the whole system. For example, the panel clock in Xfce4 supports using the standard date options to customize the date and time display. The date command is fundamental to understanding time options on Linux. Turn the Automatic Time Zone option to OFF. It may sound odd, but you must use the date command to see the time on Linux: date Thu Oct 11 11:47. Select Settings and go to the Date & Time tab. That's a one hour off from where I live as Switzerland's winter time is UTC+1 (note: Summer time is UTC+2). Click on the System menu on the top-right corner of the screen. Next use one of the following command to set new time zone on your system. ADVERTISEMENT timedatectl list-timezones Search for the required time zone name in above command. First find all the available timezones on your system. In this case we can see the time is 07:26:11 and the timezone is set to UTC. Option 1 Using timedatectl Use of timedatectl command is the proffered way to set or change time zone on a Linux system. Luckily a Linux server's timezone is quickly adjusted using the tzdata package.įirst check the current time interpretation and time zone: date Although UTC is a great way to compare server logs across the globe, analyzing logs with an offset to the (human) local time can be difficult and annoying.














Change timezone linux terminal