![]() ![]() # cp -v /usr/share/zoneinfo/Asia/Calcutta /etc/localtime I am in Asia/Calcutta (IST time zone for India) so I need to copy file as follows using the cp command: # find /usr/share/zoneinfo/ -type f -iname " Calcutta" -ls # find /usr/share/zoneinfo/ -type f -iname " Mountain" -ls # find /usr/share/zoneinfo/ -type f -iname " Portugal" -ls US +433649-1161209Ěmerica/Boise Mountain - ID (south) OR (east)Īnother option is to use the find command as follows to find Portugal and Canada/Mountain timezone file name: MX +2904-11058Ěmerica/Hermosillo Mountain Standard Time - Sonora MX +2934-10425Ěmerica/Ojinaga Mountain Time US - Chihuahua (US border) MX +2838-10605Ěmerica/Chihuahua Mountain Time - Chihuahua (most areas) MX +2313-10625Ěmerica/Mazatlan Mountain Time - Baja California Sur, Nayarit, Sinaloa # grep -i mountain /usr/share/zoneinfo/zone.tab In other words, this file contains, an entry for each timezone data file, the ISO 3166 territory code, approximate geographical coordinates (in ISO 6709 format), and location within the territory: The contents of the timezone database are indexed by /usr/share/zoneinfo/zone.tab file. For example:įeel free to filter out results using either grep command or egrep command. Use the ls command to find out your zonefile. ![]() Just cd into directory using the cd command as follows: To setup correct timezone you need to copy your timezone file from /usr/share/zoneinfo directory to /etc/localtime file. Sample outputs: Tue Jun 21 16:30: FreeBSD setting up timezone Type the following command to sets the time to 4:30 PM: 30 FreeBSD Set Time Without Modifying The Date Want to set date with 30 seconds? Try (please the. General format of date command is as follows:įor example following command set date to 1, 4:27 PM (remember you must be a root user to set date and time) Only the superuser or root user may set the date under FreeBSD. Sample Output: Thu Feb 9 23:43: FreeBSD set date and time command Type the date command as follows, to display today’s date and time: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |