linux bash time command code example Example 1: time in linux command date or timedatectl Example 2: bash time date #displays date and time in terminal