What is the meaning of o/p of "who -u" commad
Hi friends,
I have few question on the o/p of the "who -u" command: $who -u San tty1 2013-02-17 15:35 old 2526 (:0) San pts/0 2013-02-17 15:36 00:01 2714 (:0) San pts/1 2013-02-17 15:36 . 3017 (:0.0) Here, 3017 is the process id that is current process. Are 2714 and 2526 too process id's ? If so, then why don't they show up in ps command ? What does the 4th Column (15:35, 15:36, 15:36)signify? What does pts/0 and pts/1 mean ? |
Those are indeed process id's.
Which ps command did you use? They do show up on my side: Code:
# who -u In a nutshell: pts stands for pseudo terminal and one is needed for each connection (count start at 0) |
See, in ur case, the process that is shown in the o/p of the ps command is 28197
which is the current process id (last process) in the who -u command o/p. But the others, i.e. 27995 & 3522 are not shown. Same is my case. Only the last process of the who -u is shown in the ps command o/p. But not the other two. Why ?? that's my question .. got ?? |
Quote:
ps -ef | egrep "28197|27995|3522" would have shown the processes for all three pids. This would also work: Code:
ps -fp 28197,27995,3522 |
I am using only ps command, with no options to grep any particular pid.
Then, all the pid's should show up.. right ?? Why, then only current pid is shown ? btw, what is the meaning of old in the 5th column ? |
Quote:
A bare ps shows a limited amount of information. This from the ps man page: Quote:
Code:
$ who -u Quote:
|
In addition to druuna's answers above, once go through manual of ps cmd, see here or invoke:
Code:
~$ man ps Code:
-A Select all processes. Identical to -e. Code:
~$ ps -aef | grep pid |
All times are GMT -5. The time now is 09:52 PM. |