The [Top] command is showing that there are 2 users but i am only running 1 terminal command, so how come?

Asked by chiao woei

Hi all,
Again, i noticed another peculair things. I run the <top> command in terminal and it show me that there are 2 users, i then did a test by running another terminal command and i noticed that the number increased by 1 and so forth for any subsequent terminal screen. Likewise, the number will decreased accordinly for any terminal screen closed. OK, now my question is how come got 2 users when i am only running 1 terminal screen. SEE.....Is some1 remotely running behind my back....Friend?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Vojtěch Trefný
Solved:
Last query:
Last reply:
Revision history for this message
Best Vojtěch Trefný (vojtech.trefny) said :
#1

Run this command -- "w" -- one terminal is terminal with your command (top, w...) and second terminal is "terminal" with your Xserver ;-).

Revision history for this message
chiao woei (yongchiaowoei) said :
#2

Thank vojtech for your super prompt reply. I have never seen this type of command before, it is a super command friend? Cos when i try to man it, there was an error ( can't remember what it said ).
It there any way that i can read up some detail of it friend?
Thank you again

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Hello

w is a linux/unix command to show who is logged on and what they are doing.

A bit more info from the man pages:

[QUOTE]
 w displays information about the users currently on the machine, and
       their processes. The header shows, in this order, the current time,
       how long the system has been running, how many users are currently
       logged on, and the system load averages for the past 1, 5, and 15 min‐
       utes.
[QUOTE]

For the detailed info on w give the following command in a terminal:

man w

Regards

Bhavani Shankar.

Revision history for this message
chiao woei (yongchiaowoei) said :
#4

Hi there Vojtech
Very sorry to have misread your good intention. I got the wrong impression because i thought that you were asking me to issued '-- "w" --' instead of just "w" and that was why i when i try to man [ man -- "w" -- ] it returned an error. VERY VERY VERY SORRY OK FRIEND?

Revision history for this message
chiao woei (yongchiaowoei) said :
#5

Hi there Bhavani.
Thank you for your reply otherwise i would have misjudged vojtech good intention.

BYE

Revision history for this message
Bhavani Shankar (bhavi) said :
#6

hey no problems.... :)