How to set the timezone in Ubuntu and CentOS and some other useful time commands
To set the timezone in CentOS or Ubuntu, see examples below: timedatectl set-timezone Europe/London timedatectl set-timezone Africa/Johannesburg For a list of zones, use these commands: