快轉到主要內容

How to set timezone on ubuntu?

·183 字
Computer-Science Ubuntu
目錄

Prologue
#

This was tested on the Ubuntu 20, I’m not sure if it will work on yours if you are not using the same system.
#
The commands we discuss in this article may need to be used with sudo when you don’t have permission.
#

Command timedatectl to see current timezone setting
#

Run timedatectl to check the current timezone:

1$ timedatectl
2               Local time: Wed 2022-08-24 13:32:04 CST
3           Universal time: Wed 2022-08-24 05:32:04 UTC
4                 RTC time: Wed 2022-08-24 05:32:04
5                Time zone: Asia/Taipei (CST, +0800)
6System clock synchronized: yes
7              NTP service: active
8          RTC in local TZ: no

Command timedatectl list-timezones to list timezones
#

Run timedatectl list-timezones to list the timezones, and find out the timezone which you want to set:

 1$ timedatectl list-timezones
 2Africa/Abidjan
 3Africa/Accra
 4Africa/Addis_Ababa
 5...
 6Asia/Taipei
 7...
 8W-SU
 9WET
10Zulu

Command timedatectl set-timezone to set timezone
#

Use timedatectl set-timezone <timezone> command to set the timezone, for example:

1$ timedatectl set-timezone Asia/Taipei

Then use command timedatectl after set to check timezone again.


References
#

Alpaca
作者
Alpaca
No one can stop my feet.

相關文章

Ubuntu 更改家目錄語言
·574 字
Computer-Science Ubuntu

簡單幾步變更家目錄的語言

Ubuntu 更換 /Home 到新硬碟
·1364 字
Computer-Science Ubuntu Disk

如果發現當初掛載好的空間不夠用了,那麼擴充硬碟上去,然後照著步驟一步步的將檔案們搬家吧。

How to use PPPoE to connect network on Ubuntu?
·353 字
Computer-Science Ubuntu PPPoE

在 Ubuntu 用 PPPoE 連線中華電信固定 IP。

Raspberry Pi 4 (Ubuntu) configure auto connect to wifi
·142 字
Computer-Science Raspberry PI Wi-Fi Ubuntu

How to make ubuntu auto connect to wifi in raspberry pi 4?

Linux + Win 雙系統卻不見 Grub 開機選單?
·1691 字
Computer-Science Windows Ubuntu Grub

安裝了 Linux + Windows 的雙系統,但卻不見開機選單?放心,很多人跟你一樣。

Ubuntu 18 如何顯示電量百分比?
·308 字
Computer-Science Ubuntu Gnome