Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 967  / 2 Years ago, thu, december 2, 2021, 1:00:45

I was looking for some shell commands, and I took a look in "users" command.



I was hoping to get only 1 name, but I got 2:



nori@nori-hidamari:~$ users
nori nori


And when I run the command "who"



nori@nori-hidamari:~$ who
nori :0 2015-04-09 09:31 (:0)
nori pts/0 2015-04-09 09:48 (:0)


Is this behaviour normal? Or it's bad?



Thank you guys for helping me.


More From » 14.04

 Answers
4

This is normal expected behaviour.



You see your user name twice because you are logged in twice.



[simmel]@[mars]$ users
simmel simmel


The second command



who


shows which user is online right now and it looks like you were online at that time with Graphical Display :0 and pts/0 (a terminal window).



[simmel]@[mars]$ who
simmel tty8 2015-03-30 11:15 (:0)
simmel pts/3 2015-04-09 14:16 (:0)


After opening some more terminals it looks like this:



[simmel]@[mars]$ who
simmel tty8 2015-03-30 11:15 (:0)
simmel pts/3 2015-04-09 14:16 (:0)
simmel pts/4 2015-04-09 14:54 (:0)
simmel pts/8 2015-04-09 14:54 (:0)


After opening more windows the count goes up in users:



[simmel]@[mars]$ users
simmel simmel simmel simmel

[#20599] Saturday, December 4, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gigglcept

Total Points: 113
Total Questions: 105
Total Answers: 125

Location: Christmas Island
Member since Wed, Jan 13, 2021
3 Years ago
gigglcept questions
Mon, Jul 5, 21, 19:38, 3 Years ago
Thu, May 27, 21, 13:35, 3 Years ago
Tue, Feb 8, 22, 09:59, 2 Years ago
Fri, Dec 16, 22, 12:32, 1 Year ago
;