Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
the "users" command
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
oiper
Guru
Guru


Joined: 01 May 2003
Posts: 316
Location: Alabama, US

PostPosted: Fri Feb 11, 2005 10:53 pm    Post subject: the "users" command Reply with quote

Just wondering, but "users" has always given me the same user multiple times. Why is that?

Just to clarify:

Boot machine, login as "guy", run "users", get
Code:
guy guy guy guy guy

_________________
www.bearscanfly.org - Because hiking is cool
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54316
Location: 56N 3W

PostPosted: Fri Feb 11, 2005 10:58 pm    Post subject: Reply with quote

oiper,

You are logged in once for each time your user is listed. An xterm counts as a login.
Check the users count in
Code:
top

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Fri Feb 11, 2005 10:59 pm    Post subject: Reply with quote

if you run "who" do you get the same amount of usernames ?
_________________
linux: #232767
Back to top
View user's profile Send private message
oiper
Guru
Guru


Joined: 01 May 2003
Posts: 316
Location: Alabama, US

PostPosted: Sat Feb 12, 2005 1:37 am    Post subject: Reply with quote

yeah, "who" gives me the same number. That makes more since if an xterm counts. I guess that I've always opened an xterm to check it... so then at least 2 of me show up. I also usually have several terms open.

I do find it odd though. I'd think that a X session would handle/should everything under one login.
_________________
www.bearscanfly.org - Because hiking is cool
Back to top
View user's profile Send private message
justanothergentoofanatic
Guru
Guru


Joined: 29 Feb 2004
Posts: 337

PostPosted: Sat Feb 12, 2005 3:16 am    Post subject: Reply with quote

oiper wrote:
I do find it odd though. I'd think that a X session would handle/should everything under one login.


It does, but xterm opens up a new virtual terminal, just like the terminals you can use when you login without X. In other words, xterm deliberately circumvents the X-Window system and gets you back to a command line terminal interface.

-Mike
Back to top
View user's profile Send private message
aqua26
Guru
Guru


Joined: 02 Feb 2005
Posts: 313
Location: India

PostPosted: Sat Feb 12, 2005 8:20 am    Post subject: Reply with quote

justanothergentoofanatic wrote:
oiper wrote:
I do find it odd though. I'd think that a X session would handle/should everything under one login.


It does, but xterm opens up a new virtual terminal, just like the terminals you can use when you login without X. In other words, xterm deliberately circumvents the X-Window system and gets you back to a command line terminal interface.

-Mike

i am kinda of curious why is it so.
Back to top
View user's profile Send private message
justanothergentoofanatic
Guru
Guru


Joined: 29 Feb 2004
Posts: 337

PostPosted: Sat Feb 12, 2005 3:14 pm    Post subject: Reply with quote

Quote:
i am kinda of curious why is it so.


Well, some operating systems, like the old MacOS, try to completely eliminate the command line. But then you'd need a graphical, X-Window equivalent for every command line utility. It would be possible, and maybe even more powerful if the user interface were well-designed. It would also take a lot of work.

In any case, if you do want to use the command line, it's convienent to open a virtual terminal within X. Otherwise, you'd need to quit X or manually switch to one of the available ttys (usually using alt-ctrl-Fn).

There is a good but non-technical essay by Neal Stephenson about this called In the Beginning was the Command Line: http://artlung.com/smorgasborg/C_R_Y_P_T_O_N_O_M_I_C_O_N.shtml

-Mike
Back to top
View user's profile Send private message
aqua26
Guru
Guru


Joined: 02 Feb 2005
Posts: 313
Location: India

PostPosted: Sat Feb 12, 2005 8:55 pm    Post subject: Reply with quote

thanks mike.
gr8 i would like to know more abt this do u have some more technical links.
i would like to them all.
Back to top
View user's profile Send private message
justanothergentoofanatic
Guru
Guru


Joined: 29 Feb 2004
Posts: 337

PostPosted: Sun Feb 13, 2005 1:08 am    Post subject: Reply with quote

That's pretty much all I know about this topic. There is a book, The Humane Interface, by Alan Cooper (inventor of the Macintosh and Visual Basic) that covers interfaces of all kinds, but it does not extensively compare/contrast command line interfaces with graphical interfaces.

Good luck,
-Mike
Back to top
View user's profile Send private message
aqua26
Guru
Guru


Joined: 02 Feb 2005
Posts: 313
Location: India

PostPosted: Sun Feb 13, 2005 7:30 am    Post subject: Reply with quote

justanothergentoofanatic wrote:
That's pretty much all I know about this topic. There is a book, The Humane Interface, by Alan Cooper (inventor of the Macintosh and Visual Basic) that covers interfaces of all kinds, but it does not extensively compare/contrast command line interfaces with graphical interfaces.

Good luck,
-Mike

do u mean
The Humane Interface: New Directions for Designing Interactive Systems by Jef Raskin
coz Alan Cooper didn't write any book called The Human Interface. he wrote
1. About Face 2.0: The Essentials of Interaction Design
2. The Inmates Are Running the Asylum
3. About Face: The Essentials of User Interface Design

there is one more book called 'Designing the User Interface : Strategies for Effective Human-Computer Interaction (4th Edition)' by Ben Shneiderman, Catherine Plaisant

which one is good & related to this.
please 8)
Back to top
View user's profile Send private message
justanothergentoofanatic
Guru
Guru


Joined: 29 Feb 2004
Posts: 337

PostPosted: Sun Feb 13, 2005 3:09 pm    Post subject: Reply with quote

Oops...good point. Since Alan Cooper is a minor diety who appears frequently in the Book of Jobs, I naturally assumed that he was responsible for the creation of all things.

I meant the Humane Interface (by Jeff Raskin), but I haven't read any of the other ones; they might be good also.

-Mike
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum