What Time Is It Linux Command?
Contents How Do You See What Time It Is on Linux? to Display Date and Time Under Linux Operating System Using Command Prompt Use the Date Command. It Can Also...
Contents
How do you see what time it is on Linux?
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.
Must Read
How do I get the current time in Linux terminal?
Options to Display the Time
- %T: Prints the time as HH:MM:SS.
- %R: Prints the hour and minutes as HH:MM with no seconds, using the 24-hour clock.
- %r: Prints the time according to your locale, using the 12-hour clock and an am or pm indicator.
- %X: Prints the time according to your locale, using the 24-hour clock.