Timezone: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
Created page with "To set a Linux/Debian timezone. <pre> cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime </pre> Category : Linux" |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
To set a Linux/Debian timezone. | To set a Linux/Debian timezone. | ||
= Preferred Method = | |||
<pre> | |||
timedatectl set-timezone Australia/Brisbane | |||
</pre> | |||
= Alternatives = | |||
<pre> | <pre> | ||
cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime | cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime | ||
</pre> | </pre> | ||
or preferred | |||
<pre> | |||
ln -sf /usr/share/zoneinfo/Australia/Brisbane /etc/localtime | |||
</pre> | |||
Alternatively for debian | |||
<pre> | |||
dpkg-reconfigure tzdata | |||
</pre> | |||
[[Category : Linux]] | [[Category : Linux]] |
Latest revision as of 11:57, 18 August 2017
To set a Linux/Debian timezone.
Preferred Method
timedatectl set-timezone Australia/Brisbane
Alternatives
cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
or preferred
ln -sf /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
Alternatively for debian
dpkg-reconfigure tzdata