Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > "uptime" command says 2 users?

"uptime" command says 2 users?
Thread Tools
tkmd
Grizzled Veteran
Join Date: Oct 2001
Location: Michigan
Status: Offline
Reply With Quote
Aug 9, 2004, 09:29 AM
 
I am the only one who uses this computer and typed in the "uptime " command and it said -2 users- wha?

is this including the root and me? There are no other users on this computer.
Pismo 400 | Powerbook 1.5 GHz | MacPro 2.66/6GB/7300GT
     
gorickey
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
Aug 9, 2004, 09:31 AM
 
Originally posted by tkmd:
is this including the root and me?
Bingo.
     
tkmd  (op)
Grizzled Veteran
Join Date: Oct 2001
Location: Michigan
Status: Offline
Reply With Quote
Aug 9, 2004, 09:33 AM
 
so the "root" is another entity. Thanks for the quick reply
Pismo 400 | Powerbook 1.5 GHz | MacPro 2.66/6GB/7300GT
     
chabig
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
Aug 9, 2004, 09:38 AM
 
It's not root and you. It you and you. When you run terminal, each terminal window is its own session and you are the logged in user. Run the "who" command to see who the users are. Here is my output:

Mighty-Mouse:~ chabig$ who
chabig console Aug 8 08:37
chabig ttyp1 Aug 9 07:35
Mighty-Mouse:~ chabig$ uptime
7:37 up 3 days, 54 mins, 2 users, load averages: 0.33 0.58 0.55
Mighty-Mouse:~ chabig$

Now open a few more terminal windows and run who again:

Mighty-Mouse:~ chabig$ who
chabig console Aug 8 08:37
chabig ttyp1 Aug 9 07:35
chabig ttyp2 Aug 9 07:37
chabig ttyp3 Aug 9 07:37
Mighty-Mouse:~ chabig$ uptime
7:37 up 3 days, 54 mins, 4 users, load averages: 0.27 0.59 0.55
Mighty-Mouse:~ chabig$

Chris
     
gorickey
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
Aug 9, 2004, 09:57 AM
 
Originally posted by chabig:
It's not root and you. It you and you. When you run terminal, each terminal window is its own session and you are the logged in user.
D'oh! I apologize tkmd...thanks to chabig, I've learned something myself today...

     
proton
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Aug 9, 2004, 11:44 AM
 
You may want to use the w command instead of who. Besides being 2 characters shorter, it also gives more information:
Code:
1:40 up 8:27, 9 users, load averages: 1.86 1.11 0.92 USER TTY FROM LOGIN@ IDLE WHAT andrew console - Mon17 8:26 - andrew p1 - Mon17 - ssh xxxxxxx andrew p3 example.com Mon17 - -tcsh andrew p5 - Mon23 - -tcsh andrew p7 - 1:00 - ssh xxxxxxxx andrew p8 - 1:01 - -tcsh andrew p9 - 1:09 - less -Rse andrew pa - 1:17 - -tcsh andrew pb - 1:40 - w
- proton
     
Spheric Harlot
Clinically Insane
Join Date: Nov 1999
Location: 888500128, C3, 2nd soft.
Status: Offline
Reply With Quote
Aug 9, 2004, 03:30 PM
 
When using the Fast User Switching feature, why don't the other active users show up?
     
chabig
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
Aug 9, 2004, 04:34 PM
 
Originally posted by Spheric Harlot:
When using the Fast User Switching feature, why don't the other active users show up?
Because users logged into the GUI are invisible to you. It's the nature of a multi-user system. As far as you know, you're the only user of the machine. Only the OS keeps track of individual users. However, you DO see other user's terminal sessions.

Chris
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 10:42 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,