Subscribe to dotcomUNDERGROUND RSS Feed dotcomUNDERGROUND RSS Feed Add to Google Toolbar Add to Google Reader or Homepage Add to netvibes Add to Pageflakes  Windows Live Alerts
Get updates by email:    

How to change TimeZone in linux from ssh


Posted on Tuesday, August 21st, 2007 at 8:47 pm
[ Comments RSS Comments RSS ] [ Trackback Link Trackback URL ] [ Share This ] [ PDF Version Download PDF ]

If you are running a dedicated server or vps without control panel or a control panel which doesnt provide an interface to change time zones (like HSPComplete VPS), you can easily change your timezone from ssh command prompt.

First browse to /usr/share/zoneinfo to find your city.

You can use SFTP to easily browse your server files.

Linux TimeZone - Dhaka

Here we find time zone for Dhaka to be located at /usr/share/zoneinfo/Asia/Dhaka

Now you need to SSH into your server and link /etc/localtime to your desired time zone file.

To set the server timezone to Dhaka we use the command:
ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtime

SSH TimeZone - Dhaka

We can check if it got properly set with the date command
Linux Date Command

Link to this article:




Tags: , , , , ,
Search with Google:
 
Web dotcomUNDERGROUND
This entry was posted on Tuesday, August 21st, 2007 at 8:47 pm and is filed under Tech, Tips and Tricks, Tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “How to change TimeZone in linux from ssh”

  1. 1
    Ekushey Says:

    The timezone files are under /usr/share/zoneinfo/ on all distros, so need to FTP in. Just setting the symbolic link with do the job. :)

  2. 2
    jacob Says:

    Will it work on a VPS server ? didnt work for me :(

  3. 3
    Akash Says:

    Hi Sweetheart, How are you today. so I’m looking for a Innocent heart for the friendships. & I’ve a crazy heart about your friendship. So
    ” But where ever…. whenever you need a friend………… Just remember that there is a man across the border……….. who will give his life for you ” .

    ” Hey my baby, you make my worries disappear,

    You know sweetheart, ” No person cannot be happy without a friend. so I want to make a good friend “.
    AND

    “If I can get this one day to you, so I am ready to die a 1000 times for you & you Just thought who that boy is, for spending a moment with you……. , & I’m ready to die a 1000 times for you “.

    Take care your self baby,

    Have a nice day & night.

    ************************************************************

    Tadap Tadap Ke Is Dil Se Aah Nikalti rahi
    Mujhko Saza Di Pyaar Ki
    Aisa Kya Gunah Kiya
    To Lut Gaye, Haan Lut Gaye, Toh Lut Gaye Hum Teri Mohabbat Mein
    Tadap Tadap

    Ajab Hai Ishq Yara, Pal Do Pal Ki Khushiyan
    Gham Ke Khazane Milte Phir, Milti Hain Tanhaiyan
    Kabhie Aansoon, Kabhie Aahen, Kabhie Shikwe Kabhie Nale
    Tera Chehra Nazar Aaye
    Tera Chehra Nazar Aaye, Mujhe Din Ke Ujalon Mein Teri Yaadein Tadapayein
    Teri Yaadien Tadapayein, Raaton Ke Andheron Me Tera Chehra Nazar Aaye

    ***************************************************************

    ***************************** “Akash” = +33 0626417350.******

    ****************************************************Ripabd@hotmail.fr

Leave a Reply

People come here looking for: change (27), linux change timezone (22), linux timezone (15), change timezone linux (13), ssh timezone (12), linux set timezone (11), SSH change time (8), change linux timezone (8), how to change timezone in linux (6), linux timezone command (6), change time ssh (5), ssh set time (5), change time on linux (5), set timezone linux (4), change time in linux (4), linux get timezone (4), changing TimeZone in linux (4), how to change time in linux (4), change timezone (4), how to change time zone in linux (3), how to change time on VPS (3), timezone linux (3), changing timezone (3), ssh change server time (3), linux setting timezone (3), check timezone linux (3), change timezone ssh (3), ssh set timezone (3), how to change date in Linux (3), how to change time on linux server (3), set linux timezone (3), change date linux ssh (2), linux timezone (2), linux changing timezone (2), change time zone (2), linux "set timezone" (2), linux set time ssh (2), change time zone linux (2), changing server time by ssh (2), set timezone in Linux (2), timezone linux zoneinfo (2), linux time zone (2), how to set time in linux through command (2), change timezone in ssh (2), date -s linux set date (2), changing time in ssh (2), all (2), "set time in linux" (2), get timezone linux (2), timezone +linux +set (2),