Monday, February 13, 2017

How to check timezone on Ubuntu

Every computers have date and time, but what about the timezone? how to check which timezone my computer use? in this article i will show you how to check timezone on ubuntu.

Checking timezone on ubuntu can be done through command line, and there are few command can be use to check timezone, these are the commands:

Checking timezone using date command:
date +"%Z %z"

Checking timezone using timedatectl command:
timedatectl | grep "Timezone"

Checking timezone using /etc/timezone file:
cat /etc/timezone

No comments:

Post a Comment