LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-18-2013, 01:32 PM   #1
techie_san778
Member
 
Registered: Jul 2011
Posts: 90

Rep: Reputation: Disabled
Pls explain the output of who -u command in RHEL 5.6


Hello Friends,

I am running RHEL 5.6.
When I issue the $ who -u command from a non-root user, I get the following output :
san :0 2013-03-18 17:47 ? 4486
san pts/1 2013-03-18 18:43 00:26 6491
san pts/2 2013-03-18 19:44 . 8298 (:0.0)

1. Can someone explain the meaning of ? and
:0 in the 1st line of the output ??
2. With whom the process 4486 is associated,
just as 6491 is associated with pts/1?

Last edited by techie_san778; 03-18-2013 at 01:33 PM.
 
Old 03-18-2013, 02:10 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
did you read the manual page for "who" ?
Code:
man who
 
Old 03-19-2013, 12:05 AM   #3
techie_san778
Member
 
Registered: Jul 2011
Posts: 90

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
did you read the manual page for "who" ?
Code:
man who
of course, i have. Didn't find the info that i needed.
 
Old 03-19-2013, 04:16 AM   #4
subho46@gmail.com
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 1
who - show who is logged on.

-u, --users : list users logged in
 
Old 03-20-2013, 03:00 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
The ":0" is in the column identifying the terminal. :0 is a GUI login, so there is no real terminal.

The "?" is a null string, usually occurs when the user logs in without a terminal (ssh also does this with commands like "ssh remotehost ls" to take a quick ls of the users home directory on the remote host - no terminal in use...)

The login name "san" appears to be assigned to process 4486...

You can always cross check things by using the ps utility to look at the process list...
 
1 members found this post helpful.
Old 03-21-2013, 07:27 AM   #6
techie_san778
Member
 
Registered: Jul 2011
Posts: 90

Original Poster
Rep: Reputation: Disabled
Thanks jpollard !!
That solved my doubt.. Thanks again!!
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pls explain how to configure DNS server in CentOS bharathmedmeme Linux - Newbie 1 07-14-2012 01:02 PM
Explain the ls -l output anyone splinux Linux - General 2 03-11-2012 03:23 AM
pls help to explain stl multiset's behavior for user-defined object parv Programming 6 02-20-2008 10:19 PM
RHEL 3 with Windows XP - Help please pls pls ar_m_in Red Hat 7 10-01-2006 09:42 AM
grub option pls explain ravi.ravix Linux - Newbie 2 07-14-2006 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration