Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

check time in linux

date
or
date +”Year: %Y, Month: %m, Day: %d”
Year: 2022, Month: 04, Day: 16
or
$ timedatectl
Local time: Sat 2022-04-16 13:06:00 GMT
Universal time: Sat 2022-04-16 13:06:00 UTZ
RTC time: Sat 2022-04-16 13:02:34
Time zone: GMT (GMT, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: yes
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #check #time #linux
ADD COMMENT
Topic
Name
7+4 =