know current time in linux code example Example 1: get current server time centos timedatectl Example 2: linux time now command date #Sun Feb 7 17:15:03 UTC 2021