linux output time code example Example 1: get current server time centos timedatectl Example 2: show date linux date +"%d-%m-%y"