Source From Here
Question
I set my time zone to ‘America/New_York’ on a CentOS Linux 7 server. I want to see date and time in my timezone in log files. How can I change the current timezone from ‘America/New_York’ to ‘America/Chicago’ using command line?
How-To
You can easily change timezone in CentOS Linux using the following methods.
CentOS timezone config files and directories
- /usr/share/zoneinfo/
- /etc/localtime
How do I see the current time zone?
Type the date command or the ls command:
Change the current timezone in CentOS 7
To find list of all available time zones, run:
Change the current timezone in CentOS 6 and older
Question
I set my time zone to ‘America/New_York’ on a CentOS Linux 7 server. I want to see date and time in my timezone in log files. How can I change the current timezone from ‘America/New_York’ to ‘America/Chicago’ using command line?
How-To
You can easily change timezone in CentOS Linux using the following methods.
CentOS timezone config files and directories
- /usr/share/zoneinfo/
- /etc/localtime
How do I see the current time zone?
Type the date command or the ls command:
Change the current timezone in CentOS 7
To find list of all available time zones, run:
Change the current timezone in CentOS 6 and older
沒有留言:
張貼留言