Examples
  • Unix Tutorial: Examples
  • uptime command examples
  • date command examples
Powered by GitBook
On this page
  • Basic uptime usage
  • Human readable format for uptime
  • See Also

Was this helpful?

uptime command examples

This pages shows examples of using the uptime command.

PreviousUnix Tutorial: ExamplesNextdate command examples

Last updated 5 years ago

Was this helpful?

Basic uptime usage

Just type uptime in the command line:

$ uptime
11:18:23  up 83 days, 18:29,  4 users,  load average: 0.16, 0.03, 0.01

Human readable format for uptime

If you want to be told how many weeks, days and hours your system has been up, instead of just getting the number of days confired, use the -p option (-p for pretty):

$ uptime -p
up 1 week, 4 days, 23 hours, 1 minute

See Also

uptime command