To change the time use date followed by the month, day, hour, minute, and year all numeric and no spaces. The date command can be used for both viewing and changing the date and time. First, Linux's date and time must be changed and then the new time has to be written to the hardware clock. "America/Los_Angeles").Ĭhanging the date and time requires two steps. Some applications may use the configuration file /etc/sysconfig/clock to determine the current time zone so it's a good idea to set the ZONE entry (e.g. $ ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime So if your localtime file points to a zone info file that is not your time zone you can change it by browsing the directories in /usr/share/zoneinfo to find your country, then find your city or a city in the same time zone and link localtime to it. Zone information files are usually in /usr/share/zoneinfo but this depends on your distribution. In /etc the file, localtime, is a link to or copy of a file containing information about your time zone. Changing the timezone, date, and time Setting your time zone
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |