When I execute users
command, it output two users with same name. Why are there two users? I'm pretty sure that I created just one user.
i.e
username@Computer:~$ users
gives following output
username username
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityWhen I execute users
command, it output two users with same name. Why are there two users? I'm pretty sure that I created just one user.
i.e
username@Computer:~$ users
gives following output
username username
The users
command prints the user names of users currently logged in to the current host, not the list of users you created on your computer.
In your case, it returns the same user name twice because you are probably logged in twice.
You can check by using the who
command (show who is logged on):
felix@computer:~$ who
felix pts/0 2013-02-04 06:40 (:0.0)
felix pts/5 2013-02-04 06:42 (:0.0)
felix@computer:~$ users
felix felix
See the manual pages for more information (man 1 users
).
users
in aterminal. Now open another terminal run it again (users
). You can see incerase in number.