Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Ubuntu»How to Change Timezone on Ubuntu 18.04 & 16.04 LTS

    How to Change Timezone on Ubuntu 18.04 & 16.04 LTS

    By RahulAugust 12, 20191 Min Read

    All the operating systems have a default time zone configured. Sometimes users are required to change the default timezone to some other timezone as per their requirements on Linux system. This tutorial will help to change the timezone on Ubuntu 19.10, 19.04, 18.04 LTS, & 16.04 LTS systems.

    Advertisement

    Check Current Timezone

    Linux uses /etc/localtime file as current systems timezone. We can simply use “date” command to check current timezone.

    date
    
    Mon Aug 12 05:10:58 UTC 2019
    

    As per the above output, the current time zone is set to IST.

    Change Timezone on Ubuntu

    The Ubuntu operating systems keep all timezone configuration files inside /usr/share/zoneinfo/ directory. Before using the new configuration, rename or unlink old configuration file as:

    sudo mv /etc/localtime /etc/localtime.old
    

    Then create a symbolic link of /etc/localtime with new timezone settings file. For below example, I am using America/New_York (EST/PST) timezone for my server. To find out more timezone list visit here.

    sudo ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
    

    Your time zone has been changed successfully. Let’s check timezone again.

    date
    
    Mon Aug 12 01:11:55 EDT 2019
    

    date datetime time timezone
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Get Current Date & Time in C# (C-Sharp)

    How to Setup DKIM (DomainKeys) with Postfix

    A Step-by-Step Guide to Installing OpenDKIM with Postfix on Ubuntu – Unleash the Power of DKIM!

    Bash – How to Get Future Date and Time

    View 1 Comment

    1 Comment

    1. Jay on November 4, 2015 9:59 am

      Thanks bro…

      Working perfect.

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.