Hi,
I've run the TOP command in Terminal to view system processes and I have noticed that it says 4 users are logged in. I'm only logged in to one tty - tty7.
Is this normal?
Cosmic
Hi,
I've run the TOP command in Terminal to view system processes and I have noticed that it says 4 users are logged in. I'm only logged in to one tty - tty7.
Is this normal?
Cosmic
what does who say?
if your question is answered, mark the thread as [SOLVED]. Thx.
To post code or command output, use [code] tags.
Check your bash script here // BashFAQ // BashPitfalls
Output of TOP:
top - 00:10:55 up 11:54, 5 users, load average: 0.60, 0.35, 0.32
Tasks: 146 total, 1 running, 145 sleeping, 0 stopped, 0 zombie
%Cpu(s): 6.3 us, 1.7 sy, 0.0 ni, 90.9 id, 0.9 wa, 0.0 hi, 0.2 si, 0.0 st
KiB Mem: 3872396 total, 1506384 used, 2366012 free, 156724 buffers
KiB Swap: 3923964 total, 0 used, 3923964 free, 905548 cached
Output of WHO:
daz pts/1 2012-11-18 00:10 (:1)
daz tty7 2012-11-17 23:49 (:1)
Every terminal you open is a new pts, open 4 terminals you'll have 5 users logged in
"You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"
"Don't let your mind wander -- it's too little to be let out alone."
I only have a single terminal open, though. I've opened others and, yes, the # of users increases. But when I close them all I'm still left with the 5 users showing on the single remaining terminal.
Usually there are a few processes running as system users, like root or nobody. Five doesn't seem to be unusual (it's 17 here).
lists all users currently running processes.Code:ps ahxo user| sort -u
ClassicMenu Indicator - classic GNOME menu for Unity
Unsettings - configuration program for the Unity
Privacy Indicator - easily switch privacy settings in Unity
Arronax - create and modify app starters
Interesting thread. I only run Ubuntu server editions, no GUI stuff.
I have never seen "top" or "uptime" show a different number of users than "who" . I get many listed with the command diesch listed above. So maybe it some GUI desktop thing.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
+1
I'm fairly certain top uses 'w' to figure out how many users are logged in.
"You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"
"Don't let your mind wander -- it's too little to be let out alone."
Bookmarks