How to determine how long your Linux box has been up and running

Written by Ian Carnaghan · 24 sec read >
  • There are 2 commands that can be used namely the ‘uptime‘ and ‘w‘ commands
    •  uptime = Shows how long Linux has been running, how many users are connected and then three system load averages.
    • w = The w command gives a little bit more information.this could be useful if you have a busy system with lots of users connected.
  • Open a new Terminal Session and type the uptime command. Your output will look similar to below

10:15:01 up  1:43,  4 users,  load average: 1.10, 1.18, 1.23

  • Open a new Terminal Session and type the w command. Your output will look similar to below

USER          TTY      FROM              [email protected]   IDLE   JCPU   PCPU WHAT
username   tty7     :0                        08:41         ?          5:46      0.28s  x-session
username   pts/0    :0.0                   09:11         0.00s  0.10s     0.00s  w

Last Updated On April 07, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

Notify of