How To Alter Arrangement Timezone
When y'all initially install Linux, y'all specify the machine's timezone. After the install, y'all tin manually change the timezone. The next physical care for applies to Debian in addition to Ubuntu systems.
Before y'all alter the timezone, let's notice out what timezone your arrangement is currently in.
$ appointment Tue December two 13:53:11 PST 2014
The higher upwards date ascendence tells y'all that the arrangement is on PST, aka Pacific Standard Time.
You tin alter the timezone interactively or through batch processing.
Interactive setup
The next ascendence guides y'all through two screens to configure the timezone.
$ sudo dpkg-reconfigure tzdata
The payoff of specifying the timezone interactively is that y'all don't bring to know the exact cite of the timezone. The plan volition guide y'all to guide your target timezone. But, if y'all desire to automate the physical care for through a trounce script, delight follow the batch method every minute explained below.
Batch setup
- Identify the cite of the target timezone.
Timezone information files are stored inward the /usr/share/zoneinfo directory tree. Each continent has a corresponding subdirectory, e.g., /usr/share/zoneinfo/America. Each continent subdirectory contains timezone files named past times cities inward the continent, e.g., /usr/share/zoneinfo/America/Vancouver.
$ ls /usr/share/zoneinfo/AmericaNote the urban meat where your arrangement is located (or the nearest urban meat inward the same timezone). The timezone identifier is the concatenated continent in addition to urban meat names, e.g., America/Vancouver.
- Specify the timezone inward /etc/timezone. $ sudo -s sh -c 'echo America/Vancouver > /etc/timezone'
- Run configure program. $ sudo dpkg-reconfigure -f noninteractive tzdata
0 Response to "How To Alter Arrangement Timezone"
Post a Comment