uptime Command with in Linux


This tutorial explains Linux “uptime” command, options and its usage with examples.

uptime – Tell how long the system has been running.


Displays the total uptime and other information for the computer.

This is the same information contained in the header line displayed by w command.


Note: Join free Sanfoundry classes at Telegram or Youtube



1. Simple Example

$ uptime
 13:37:45 up 19:10,  2 users,  load average: 0.00, 0.06, 0.11

The information shown is as follows :
Current time
How long system is running for
Number of users logged on
Load average for past 1 minute
Load average for past 5 minutes
Load average for past 15 minutes

Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.

If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.

Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & technical discussions at Telegram SanfoundryClasses.