Which command will set the local machine’s timezone to UTC?

Which command will set the local machine’s timezone to UTC?

Which command will set the local machine’s timezone to UTC?

A.
cat UTC > /etc/timezone

B.
ln -s /usr/share/zoneinfo/UTC /etc/localtime

C.
date –timezone=UTC

D.
mv /usr/timezone/UTC /etc

Explanation/Reference:
The symlink practice was stopped some time ago, probably because a /usr is not necessarily mounted all the time.
But technically B) is correct use tzconfig to change the timezone on recent distributions.



Leave a Reply 1

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


Francisco Ricardo Voces

Francisco Ricardo Voces

En distribuciones recientes se usa tzselect, ya que tzconfig se retira por obsolescencia