uptime - Tell how long the system has been running
$ uptime
uptime
outputs information about the system, in a single line, to STDOUT. This information includes when the system came online and how long it has been up.
-p
, --pretty
: Output only the uptime, in human-readable format.-s
, --since
: Output only the datetime when the system came online.$ uptime
2024-01-24 06:23:27 up 4:20:00
$ uptime -p
Up 2 minutes, 20 seconds
$ uptime -s
2024-01-24 06:23:27