get time in linux terminal code example Example 1: get current server time centos timedatectl Example 2: time in linux command date or timedatectl