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 :
04:17:02 up 82 days, 23:34, 1 user, load average: 0.00, 0.00, 0.00
04:17:05 up 82 days, 23:34, 1 user, load average: 0,00, 0,00, 0,00
USER TTY FROM [email protected] IDLE JCPU PCPU WHAT
root pts/0 126.96.36.199 04:16 0.00s 0.03s 0.02s w
As usual for more detail or option available using man.
UPTIME(1) Linux User’s Manual UPTIME(1)
uptime – Tell how long the system has been running.
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).
/var/run/utmp information about who is currently logged on
/proc process information
Please send bug reports to <[email protected]>
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.