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