FreeBSD Set Date, Time and Timezone Command

www‮ual.‬tturi.com
FreeBSD Set Date, Time and Timezone Command

To set the date, time, and timezone on a FreeBSD system, you can use the date command and the tzsetup utility.

To set the date and time, you can use the date command with the -s option followed by the desired date and time in the format YYYYMMDDhhmm.ss. For example:

date -s "202104011230.00"

This will set the date and time to April 1, 2021 at 12:30:00.

To set the timezone, you can use the tzsetup utility. To start the utility, you can use the following command:

tzsetup

This will display a menu that allows you to select your timezone. You can use the arrow keys to navigate the menu and select your timezone, then press Enter to set the timezone.

It's important to note that you may need to have root privileges to use the date command and the tzsetup utility.

For more information about using the date command and the tzsetup utility, you can refer to the date manual page and the tzsetup manual page. For example:

man date
man tzsetup
Created Time:2017-10-28 20:40:36  Author:lautturi