My friend send email asking for command line. His boss don’t believe on uptime report he made. He told me that he got the report from 3rd party that manage the server. He want to know it and will show the result to his boss.
As far as I know the command for checking are :
1. uptime
# uptime
04:17:02 up 82 days, 23:34, 1 user, load average: 0.00, 0.00, 0.00
2. w
# w
04:17:05 up 82 days, 23:34, 1 user, load average: 0,00, 0,00, 0,00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 36.68.204.105 04:16 0.00s 0.03s 0.02s w
As usual for more detail or option available using man.
# man uptime
UPTIME(1) Linux User’s Manual UPTIME(1)
NAME
uptime – Tell how long the system has been running.
SYNOPSIS
uptime
uptime [-V]
DESCRIPTION
uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are cur-
rently logged on, and the system load averages for the past 1, 5, and 15 minutes.
This is the same information contained in the header line displayed by w(1).
FILES
/var/run/utmp information about who is currently logged on
/proc process information
AUTHORS
uptime was written by Larry Greenfield <[email protected]> and Michael K. Johnson <[email protected]>.
Please send bug reports to <[email protected]>
SEE ALSO
ps(1), top(1), utmp(5), w(1)
Cohesive Systems 26 Jan 1993 UPTIME(1)
If you want to print it you might want to export it first.
# man uptime > uptime.txt
If you have vps or dedicated server then you can compare it versus confirmation email from provider.