Re: [SLE] Command to see user on display :0?
- From: James Knott <james.knott@xxxxxxxxxx>
- Date: Sat, 25 Feb 2006 18:52:13 -0500
Johnny Ernst Nielsen wrote:
Johnny Ernst Nielsen wrote:
What is the command line command to see what user is logged into
the first display in X?
On SUSE Linux 9.0 I used to be able to see that with
last :0
But that does not work on SUSE Linux 10.0
Greetings James,
thank you for a fast answer. :o)
Lørdag 25 februar 2006 23:31 kvad James Knott:
It still works here. last :0 by itself lists several lines, but
last > :0|grep still, shows who's currently on display 0.
That is trange.
Output from my command...
last :0
...gives me a blank line and a line saying:
wtmp begins Sat Feb 25 21:19:34 2006
Nothing else.
last with no options or parameters lists this:
root tty1 Sat Feb 25 23:45 - 23:45
(00:00)
johnny pts/6 Sat Feb 25 22:54 still logged
in
root pts/11 Sat Feb 25 22:44 - 22:45
(00:00)
johnny pts/8 Sat Feb 25 22:41 - 22:45
(00:04)
johnny pts/7 Sat Feb 25 22:39 - 22:45
(00:06)
johnny pts/6 Sat Feb 25 22:32 - 22:45
(00:13)
johnny pts/7 Sat Feb 25 22:32 - 22:32
(00:00)
johnny pts/6 Sat Feb 25 22:28 - 22:32
(00:04)
johnny pts/5 Sat Feb 25 22:25 still logged
in
johnny pts/3 Sat Feb 25 21:19 - 21:33
(00:13)
wtmp begins Sat Feb 25 21:19:34 2006
As you can see there is no meintion of any X displays.
Does something need to be turned on or off for this to work?
Here's what mine shows.
jknott@linux:~> last :0
jknott :0 console Fri Feb 17 21:33 still logged in
jknott :0 Fri Feb 17 21:33 - 21:33 (00:00)
jknott :0 console Sat Feb 11 22:20 - 21:33 (5+23:12)
jknott :0 Sat Feb 11 22:20 - 22:20 (00:00)
jknott :0 console Sun Feb 5 20:36 - 22:14 (6+01:38)
jknott :0 Sun Feb 5 20:36 - 20:36 (00:00)
jknott :0 console Sat Feb 4 20:43 - 20:35 (23:51)
jknott :0 Sat Feb 4 20:43 - 20:43 (00:00)
jknott :0 console Fri Jan 27 07:33 - 20:43 (8+13:09)
jknott :0 Fri Jan 27 07:33 - 07:33 (00:00)
jknott :0 console Tue Jan 17 20:40 - 07:32 (9+10:52)
jknott :0 Tue Jan 17 20:40 - 20:40 (00:00)
jknott :0 console Sun Jan 8 20:52 - 20:39 (8+23:47)
jknott :0 Sun Jan 8 20:52 - 20:52 (00:00)
jknott :0 console Wed Jan 4 19:43 - 20:47 (4+01:04)
jknott :0 Wed Jan 4 19:43 - 19:43 (00:00)
jknott :0 console Mon Jan 2 21:24 - 19:36 (1+22:11)
jknott :0 Mon Jan 2 21:24 - 21:24 (00:00)
jknott :0 console Mon Jan 2 21:08 - 21:23 (00:14)
jknott :0 Mon Jan 2 21:08 - 21:08 (00:00)
jknott :0 console Tue Dec 27 20:56 - 21:06 (6+00:09)
jknott :0 Tue Dec 27 20:56 - 20:56 (00:00)
jknott :0 console Mon Dec 19 17:14 - 20:56 (8+03:41)
jknott :0 Mon Dec 19 17:14 - 17:14 (00:00)
jknott :0 console Sun Dec 11 11:26 - crash (7+23:34)
jknott :0 Sun Dec 11 11:26 - 11:26 (00:00)
wtmp begins Sat Dec 10 20:14:27 2005
As you can see, I have that wtmp at the end.
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx
- Follow-Ups:
- Re: [SLE] Command to see user on display :0?
- From: Johnny Ernst Nielsen
- Re: [SLE] Command to see user on display :0?
- References:
- [SLE] Command to see user on display :0?
- From: Johnny Ernst Nielsen
- Re: [SLE] Command to see user on display :0?
- From: James Knott
- Re: [SLE] Command to see user on display :0?
- From: Johnny Ernst Nielsen
- [SLE] Command to see user on display :0?
- Prev by Date: Re: [SLE] SuSE 10 won't start after update with apt-get on 24 feb.
- Next by Date: Re: [SLE] Is the hard disk full? Long post.
- Previous by thread: Re: [SLE] Command to see user on display :0?
- Next by thread: Re: [SLE] Command to see user on display :0?
- Index(es):
Relevant Pages
|