Difference between revisions of "OS-Linux-System"

From KRayWiki
Jump to navigation Jump to search
(Record how to set timezone on a systemd Linux box.)
 
m (Note that the timezone change method given is sufficient to be retained over reboot.)
 
Line 17: Line 17:
 
: <kbd>$ timedatectl set-timezone America/Chicago</kbd>
 
: <kbd>$ timedatectl set-timezone America/Chicago</kbd>
 
: <kbd><small>Thu Mar  1 18:51:43 CST 2018</small></kbd>
 
: <kbd><small>Thu Mar  1 18:51:43 CST 2018</small></kbd>
 +
 +
This change is preserved over system reboot.
  
 
</blockquote>
 
</blockquote>

Latest revision as of 00:55, 2 March 2018

See Also 
OS-Linux

Time

Time Zone

systemd

Distributions with systemd, like RHEL 7 and CentOS 7, can require use of tools not historically used to set the time zone. The timedatectl command is useful. For example:

$ date
Thu Mar 1 19:49:10 EST 2018
$ timedatectl list-timezones
$ timedatectl list-timezones | grep America
$ timedatectl set-timezone America/Chicago
Thu Mar 1 18:51:43 CST 2018

This change is preserved over system reboot.