How to view system time and set time zone in Linux?

To check the system time, you can enter the following command in the command line.

date

To set the system time zone, you can enter the following command in the command line:

sudo timedatectl set-timezone <时区>

In this case,

timedatectl list-timezones
Leave a Reply 0

Your email address will not be published. Required fields are marked *