|
|
"uptime" command says 2 users?
|
|
|
|
Grizzled Veteran
Join Date: Oct 2001
Location: Michigan
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status:
Offline
|
|
Originally posted by tkmd:
is this including the root and me?
Bingo.
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Oct 2001
Location: Michigan
Status:
Offline
|
|
so the "root" is another entity. Thanks for the quick reply
|
Pismo 400 | Powerbook 1.5 GHz | MacPro 2.66/6GB/7300GT
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status:
Offline
|
|
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...
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Nov 2000
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Nov 1999
Location: 888500128, C3, 2nd soft.
Status:
Offline
|
|
When using the Fast User Switching feature, why don't the other active users show up?
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status:
Offline
|
|
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 Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|