LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Who command: Ambiguous Ouptput (https://www.linuxquestions.org/questions/linux-newbie-8/who-command-ambiguous-ouptput-847685/)

smc2 12-01-2010 07:39 AM

Who command: Ambiguous Ouptput
 
Hi..
I'm new to linux.
may you please answer these questions:
1- Why there is no IP address for some connections? what does ":0" or "0.0" or "1.0" means?
2- for first connection I have ":0" for tty and "-" for from.. what does they mean?
3- why for last connection I have "-bash" but for others I have only "bash"? what does this minus show?



Code:

16:47:52 up 19 days,  5:04, 10 users,  load average: 0.09, 0.04, 0.01
USER    TTY      FROM              LOGIN@  IDLE  JCPU  PCPU WHAT
root    :0      -              12Nov10 ?xdm?  18:04  0.13s /usr/bin/gnome-
root    pts/4    10.10.10.160      14:26  31:10  11.11s  0.00s -bash
root    pts/6    10.10.10.160      14:38    2:08m  0.72s  0.71s watch -n 3 w
root    pts/7    10.10.10.160      14:40    1:32m  1.16s  1.14s watch -n 3 ls -
root    pts/8    10.10.10.160      14:58    1:42m  0.02s  0.00s tail -f /var/lo
root    pts/9    10.10.10.160      15:04    1:42m  0.01s  0.00s tail -f /var/lo
root    pts/1    :0.0             Sun08    3days  0.03s  0.03s bash
root    pts/2    :0.0            Sun08    7:21m  0.09s  0.08s bash
root    pts/3    :0.0            Sun08    3days  0.01s  0.01s bash
root    pts/12  :1.0             Tue17  22:58m  0.01s  0.01s -bash

I' using redhat 5.5

Thanks in Advance.

divyashree 12-01-2010 08:12 AM

Quote:

Originally Posted by smc2 (Post 4176994)
Hi..
I'm new to linux.
may you please answer these questions:
1- Why there is no IP address for some connections? what does ":0" or "0.0" or "1.0" means?
2- for first connection I have ":0" for tty and "-" for from.. what does they mean?
3- why for last connection I have "-bash" but for others I have only "bash"? what does this minus show?



Code:

16:47:52 up 19 days,  5:04, 10 users,  load average: 0.09, 0.04, 0.01
USER    TTY      FROM              LOGIN@  IDLE  JCPU  PCPU WHAT
root    :0      -              12Nov10 ?xdm?  18:04  0.13s /usr/bin/gnome-
root    pts/4    10.10.10.160      14:26  31:10  11.11s  0.00s -bash
root    pts/6    10.10.10.160      14:38    2:08m  0.72s  0.71s watch -n 3 w
root    pts/7    10.10.10.160      14:40    1:32m  1.16s  1.14s watch -n 3 ls -
root    pts/8    10.10.10.160      14:58    1:42m  0.02s  0.00s tail -f /var/lo
root    pts/9    10.10.10.160      15:04    1:42m  0.01s  0.00s tail -f /var/lo
root    pts/1    :0.0             Sun08    3days  0.03s  0.03s bash
root    pts/2    :0.0            Sun08    7:21m  0.09s  0.08s bash
root    pts/3    :0.0            Sun08    3days  0.01s  0.01s bash
root    pts/12  :1.0             Tue17  22:58m  0.01s  0.01s -bash

I' using redhat 5.5

Thanks in Advance.

Looks like homework !! Search in google 1st and some answers are:

There is no IP address for some connection because they are not connected from remote but from local machine(localhost).
:0 means no terminal login(gui login).
:0.0 means login from localhost not from remotehost.
In the 1st line indicates you have logged in from GUI(Gnome Session) whcih uses no terminal login

catkin 12-01-2010 08:26 AM

-bash indicates a login shell

smc2 12-01-2010 08:59 AM

Thanks guys your are really helpful..

but what about "1.0" ?what does this mean?is there any man page that written all possible cases ?

dear catkin, would you please tell me what is the difference between login shell and shell? login shell are shell with root privileges?


Thanks again.

divyashree 12-01-2010 09:39 AM

Quote:

Originally Posted by smc2 (Post 4177090)
Thanks guys your are really helpful..

but what about "1.0" ?what does this mean?is there any man page that written all possible cases ?

dear catkin, would you please tell me what is the difference between login shell and shell? login shell are shell with root privileges?


Thanks again.

Login shells are the ttys where you have to login 1st to use the shell but shell are the pts(pseudo terminals) which can be obtained by mouse-click (right click and open terminal on desktop) or from the accessories.


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