.. include:: ../header.txt .. _users: Users and Hosts =========================== :title:`Linux for Programmers and Users`, Section 9.4 :command:`users` ----------------- .. index:: users .. program:: users .. describe:: users Print the user names of users currently logged in to the current host. .. _who: :command:`who` ----------------- .. index:: who .. program:: who .. describe:: who Print a more detailed list of the user names of users currently logged in to the current host. .. seealso:: :ref:`whoami` :command:`w` ----------------- .. index:: w .. program:: w .. describe:: w Like ``who``, except also lists what command they are currently running. It's the creepy version of ``who``. :command:`hostname` -------------------- .. index:: hostname .. program:: hostname .. describe:: hostname Print the name of the computer being used. It may be useful in a shell script in case certain resources are only available on some machines. :command:`finger` ----------------- .. index:: finger .. program:: finger .. describe:: finger This one isn't quite as bad as the name sounds. Use it to find out basic information about a user. SYNOPSIS :command:`finger` *userid*