PrepAway - Latest Free Exam Questions & Answers

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

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

PrepAway - Latest Free Exam Questions & Answers

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:
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