Ask Your Question

Revision history [back]

uptime user count is short, similar to who -u -H

Four users are logged into console and four users logged in remotely over ssh. Only 5 users reported by uptime, not the expected 8. who -u -H ;echo "UPTIME:" ; uptime ; ps -efw | egrep pts | egrep bash | egrep -v grep NAME LINE TIME IDLE PID COMMENT user__6 tty2 2017-04-11 09:14 04:24 1848 (/dev/tty2) user__6 pts/4 2017-04-11 09:37 . 8420 (192.168.1.147) user__6 pts/5 2017-04-11 09:39 02:57 7279 (192.168.1.147) user__6 pts/6 2017-04-11 09:41 03:38 6952 (192.168.1.147) user__6 pts/7 2017-04-11 09:42 . 6133 (192.168.1.147)

UPTIME: 13:38:29 up 4:24, 5 users, load average: 0.01, 0.09, 0.08 user__6 2376 2365 0 09:15 pts/0 00:00:00 bash user__6 773 2365 0 09:17 pts/1 00:00:00 bash user__6 32114 2365 0 09:18 pts/2 00:00:00 bash user__6 31842 2365 0 09:19 pts/3 00:00:00 bash user__6 8446 8424 0 09:37 pts/4 00:00:00 -bash user__6 7298 7291 0 09:39 pts/5 00:00:00 -bash user__6 6980 6960 0 09:41 pts/6 00:00:00 -bash user__6 6168 6145 0 09:42 pts/7 00:00:00 -bash