LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2016, 02:23 AM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
silly question about the w command


if i go w i get

[user@localhost ~]$ w
08:19:37 up 23 min, 2 users, load average: 0.04, 0.14, 0.21
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
user :0 :0 07:57 ?xdm? 3:27 0.12s gdm-session-wor
user pts/0 :0.0 08:14 1.00s 0.04s 0.00s w

according to what i read w (what) shows more detailed info than who,its ment to show info about users

but why is my user account in twice? does it just show users and what processes they running?
gdm and the w command itself or am i missing something?

thanks
 
Old 02-10-2016, 02:33 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
man w explains it. Not a silly question. You should look up tutorials on how to read man pages. I find I rarely have to ask questions by reading man pages.

Last edited by sag47; 02-10-2016 at 02:35 AM.
 
Old 02-10-2016, 03:53 AM   #3
theminotaur
LQ Newbie
 
Registered: Feb 2016
Location: There and here.
Distribution: RPM & DEB
Posts: 1

Rep: Reputation: Disabled
gdm grabs the tty you're using for w. The terminal is also used as a PID for w.

Could be wrong though. :,/
 
Old 02-10-2016, 04:04 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,149

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
i suppose you're account is login on the machine.

then you use same account to login via TTY.

or it could be that:

1 user is a ninja user

the other user is just a virtual user.

So two users: 1 ninja and 1 virtual
 
Old 02-10-2016, 04:22 PM   #5
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
tons of tanks guys!!!
 
  


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
[SOLVED] man command and silly behavior johnpuppa Slackware 15 06-18-2014 07:30 AM
Silly question really about ftp command in bash hashbangbinbash Linux - Newbie 3 07-04-2008 04:47 AM
silly question? Maxorata Solaris / OpenSolaris 8 12-20-2006 05:06 PM
Silly Question Crashed_Again Linux - General 21 04-07-2003 05:08 AM
Sorry for such silly question anandc Linux - Newbie 3 03-11-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 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