linux get time code example
Example 1: get current server time centos
timedatectl
Example 2: show date linux
date +"%d-%m-%y"
Example 3: time in linux command
date
or
timedatectl
Example 4: unix get time
user@machine:~$ date
Tue Jan 12 09:22:56 UTC 2021
Example 5: linux date command live update
{ while true ; do date ; sleep 0.1 ; done } | uniq