Difference between revisions of "CentOS VPS Server Setup Tips"
From PeTechWiki
Jump to navigationJump to search (Created page with "== Useful Linux Tutorials and Handbooks == * [http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html Linux Init Process and PC Boot Procedure] * [http://www.yolinux.co...") |
m |
||
Line 26: | Line 26: | ||
Output: | Output: | ||
Tue Aug 27 14:46:08 EST 2006 | Tue Aug 27 14:46:08 EST 2006 | ||
+ | Reference: [http://www.cyberciti.biz/faq/howto-linux-unix-change-setup-timezone-tz-variable/ Howto: Linux server change or setup the timezone] |
Revision as of 15:49, 1 June 2012
Useful Linux Tutorials and Handbooks
- Linux Init Process and PC Boot Procedure
- Linux Network Configuration
- Linux System Administration and Configuration
- Linux Tutorial - Fedora Core and Red Hat Linux CD Installation, Version Upgrade, Configuration and Basic Administration
- Linux Web Server and Domain Configuration Tutorial
- Linux-UNIX For DOS Users
- Linux Shell Scripting Tutorial - A Beginner's handbook
Set timezone using /etc/localtime configuration file [any Linux distro]
Often /etc/localtime is a symlink to the file localtime or to the correct time zone file in the system time zone directory.
Generic procedure to change timezone
Change directory to /etc
# cd /etc
Create a symlink to file localtime:
# ln -sf /usr/share/zoneinfo/EST localtime
OR some distro use /usr/share/zoneinfo/dirname/zonefile format (Red hat and friends)
# ln -sf /usr/share/zoneinfo/EST localtime
OR if you want to set up it to IST (Asia/Calcutta):
# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime
Please mote that in above example you need to use directory structure i.e. if you want to set the timezone to Calcutta (India) which is located in the Asia directory you will then have to setup using as above.
Use date command to verify that your timezone is changed:
$ date
Output:
Tue Aug 27 14:46:08 EST 2006