Quick Answer: How Do I Display System Time in Linux?
Contents to Display Date and Time Under Linux Operating System Using Command Prompt Use the Date Command. It Can Also Display the Current Time / Date in the...
To display date and time under Linux operating system using command prompt use the date command. It can also display the current time / date in the given FORMAT. We can set the system date and time as root user too.
How do I show system time in Linux?
To see the time on a Debian GNU/Linux system, use the command date, without arguments it will show system time respecting the currently defined timezone. To see the time in the UTC timezone, use the command date –utc (or shorthand date -u). See the date manual page.
Must Read
How do I display the current time in Linux shell?
Sample shell script to display the current date and time
#!/bin/bash now=”$(date)” printf “Current date and time %sn” “$now” now=”$(date +’%d/%m/%Y’)” printf “Current date in dd/mm/yyyy format %sn” “$now” echo “Starting backup at $now, please wait…” # command to backup scripts goes here # …