With /etc/localtime, you change the time zone by creating a symbolic link to a binary file that has the same name as the time zone in the /usr/share/zoneinfo directory. You'll need to use sudo because the root user owns the file.įor example, to edit it with vim: sudo vim /etc/timezone Open Date & Time settings by searching for time from an Activities menu. It will set your current date and time of your system into 'January 25, 2014' and '09:17:00 AM'. If for some reason you have to change it manually using date command, we can use this command : date -set20140125 09:17:00. To change the time zone using /etc/timezone, you'd edit it with any text editor and place the time zone name you got earlier in that file. Change Timezone using GUI Open Date & Time settings. Generally, you want your system date and time is set automatically. To find out which files you use on your system, consult your distribution's documentation. These files are usually set at installation, but you can change them afterward. Which file you'll use depends on which system you're running.ĭebian and Ubuntu systems use the former. ![]() To view all available time zones, use the timedatectl command or list the files in the /usr/share/zoneinfo directory: timedatectl list. The time zone naming convention usually uses a Region/City format. ![]() If you want to make system-wide changes to the time zone, such as for a desktop system or a laptop that stays in one location, you can use the /etc/timezone and /etc/localtime files. Changing the Time Zone in Linux Before changing the time zone, you’ll need to find out the long name of the time zone you want to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |