Linux Display Time Command
In Linux system, you can utilize the date command to instantly display the current time. Simply input the following command in the terminal.
date
This will display the current date and time, including the year, month, day, hour, minute, and second. You can use different options of the date command to format the displayed time, for example:
- Display the time in 24-hour format: date +%H:%M:%S
- Display the time in 12-hour format: date +%I:%M:%S %p.
- Display full information of date and time: date “+%Y-%m-%d %H:%M:%S”.
By using the date command and selecting the appropriate options, you can customize the displayed time format according to your needs.