LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-26-2021, 05:34 AM   #1
vucni45
Member
 
Registered: Aug 2021
Posts: 38

Rep: Reputation: Disabled
uptime


Hi,
I seen that

uptime
06:19:32 up 1:01, 2 users, load average: 0.00, 0.02, 0.05
[root@y ~]# last
reboot system boot 3.10.0-1160.el7. Sun Sep 26 05:05 - 06:19 (01:13)

uptime shows that this system is up from 1:01 and last 1:13.
which is correct?

uptime read from /proc/uptime.

the output of uptime and last must be the same.is right?
 
Old 09-26-2021, 11:21 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by vucni45 View Post
Hi,
I seen that

uptime
06:19:32 up 1:01, 2 users, load average: 0.00, 0.02, 0.05
[root@y ~]# last
reboot system boot 3.10.0-1160.el7. Sun Sep 26 05:05 - 06:19 (01:13)

uptime shows that this system is up from 1:01 and last 1:13.
which is correct?

uptime read from /proc/uptime.

the output of uptime and last must be the same.is right?
No, they measure (get their numbers from) different things. They are both correct, and should come close to matching. Did you read the man pages?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
init uptime longer than system uptime? m4rtin Linux - Server 1 09-15-2010 07:45 AM
why does 'uptime' report '2' users?? purpleburple Linux - General 6 08-07-2002 09:17 PM
linuxquestions.org uptime.... anoop_chandran Linux - General 0 07-10-2002 05:49 AM
uptime - 0 users? Sky Slackware 6 06-26-2002 12:03 AM
Uptime posted to html via PHP? bkeating Linux - Software 5 06-20-2002 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration