Home | Store | Articles | Downloads | E-Mail | About | Testimonials | Contact | Labs  Tuesday, August 19, 2008



Mailing List

E-mail:
By Joining the mailing list you will be notified of site updates.
_______________

Show Your Support For
This Site By Donating:



_______________
Server Time:
9:24 PM
This Server Runs:
Red Hat Enterprise Linux 4
Kernel 2.6.9-42.0.2.EL #1
Apache 1.3.36 (Unix)
PHP 4.4.2
Perl 5.8.5
cPanel 10.8.2-STABLE 120


_______________










Questions? Call Our Office Today 941-306-3031

Audience: Newbies - Self Learners
Last Updated: 10/21/2006 10:56:38 AM
Original Creation Date: 10/21/2006 10:56:42 AM
**All times are EST**



HOWTO - Viewing Uptime in Linux

By Erik Rodriguez

This article is a HOWTO on viewing the uptime on a Linux machine.



About Uptime

Many people are confused about the concept of uptime. The number 1 determining factor of uptime is what the sys admin does to keep the machine up. Certain machines will need to be rebooted often. Others will not. Depending your OS and the role of your server, your uptime may vary. Obviously, Windows machines will need to be reboot rather frequently. However, I've seen Linux machines that act only as DNS servers run for years at a time. The only time you will need to reboot your Linux machine is to update the kernel. All other installations and patches can be activated automatically, or simply require a service restart.

Command Line Time...


You do NOT need root privledges to check the uptime. There are two ways to do this:

[weaponx@roswell weaponx]$ w
 11:15:55  up 68 days,  1:34,  5 users,  load average: 3.13, 3.06, 3.01
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
root     tty1     -                 4Sep06  2days 11days  0.00s  login -- root
lizard   pts/0    192.168.0.50     17Sep06 19days  5days  0.07s  -bash
deathlok pts/1    192.168.0.50     17Sep06 19days  2days  0.08s  -bash
weaponx  pts/2    thorin           11:03am  1.00s  0.06s  0.01s  w
[weaponx@roswell weaponx]$

w is short for who. It will show you who is logged in, from where, and other info about their login times and what they are doing. You can see the uptime of this machine currently is 68 days, 1 hour, and 34 mintues. the 11:15:55 is the server time. The load averages are also displayed. The 3 figures represent the load at the last minute, last 5 mintues, and last 15 mintues.

You can also view the uptime with less information with this command:

[weaponx@roswell weaponx]$ uptime
 11:22:35  up 68 days,  1:41,  5 users,  load average: 3.08, 3.08, 3.02
[weaponx@roswell weaponx]$


Happy load viewing ;)

Need More Help?

Did you find this helpful? Check out these other related articles:

HOWTO - Edit files with vi
HOWTO - Adding Users to Groups
HOWTO - Using Sudo for Root Privileges
HOWTO - Viewing Uptime in Linux
HOWTO - View Running Tasks in Linux
HOWTO - Disable SSHv1



Comments, Questions, Problems?

Use the form below to send the author your thoughts. Your e-mail address is optional, but required if you would like a response.



Your Name:  
E-Mail:         

Comments:  

See the list of things I won't respond to...












Copyright © 2002-2007 Skullbox.Net All Rights Reserved.
A division of Orlando Tech Works, LLC
By using this site you agree to its Terms and Conditions.
Contact the .