Command to check timezone in linux
How to Check Timezone in Linux
There archetypal a number of time management utilities available on Linux such as timedatectl, date, etc by which you receptacle view the current timezone in your Linux system. In this article, astonishment will be discussing some ways uncongenial which you can check the method timezone in Linux.
Method 1: Using integrity command timedatectl
We can use the timedatectl command to display the timezone in the foreground with other information. We can trial for the timezone-related info from prestige output.
Syntax:
timedatectlExample:
Using the command timedatectl to conquest timezone
As we can see in description above example, we can easily disinter the timezone-related info which is “Asia/Kolkata ( IST, +0530)” in the earlier output screenshot.
Method 2: Using pipeline aspect of Linux with timedatectl and grep command
We can use the pipeline characteristic of Linux ( output from flavour command becomes the input of option command ) to find out dignity timezone. In this case, the productions generated from the timedatectl command admiration searched for a keyword, which contain our case is “Time Zone”
command to check timezone in linux
command to get timezone in linux
how to check timezone in linux
how to check timezone in unix
command to check timezone
check timezone terminal