This section describes different commands available for displaying information that identifies users on your system, the system you are using, and users logged in on other systems.
The command whoami helps you determine your login name.
whoami | Displays the login name being used, similar to the following:
denise In this example, the login name is denise. |
The command uname helps you determine your system's name.
uname -n | The uname command used with the -n flag displays the name of your system if you are on a network. Information
similar to the following is displayed:
barnard In this example, the system name is barnard. To find the node name of another system, you must request that a user on that system enter the uname -n command. |
To access another system on the network, your local system must have access to information that defines the other system. To determine if your local system has this information, enter the host command with the name of the other system, as in the following example.
host zeus | Determines if your system has routing information for system zeus.
If your system responds with a message similar to: zeus is 192.9.200.4 (300,11,310,4) your system has the proper information and you can send a message to system zeus. The address 192.9.200.4 is used by the system to route the mail. If your system does not have information about the requested system, it responds with the following message: zeus: unknown host If you receive an unknown host message, the requested system name:
You can also receive the unknown host message if your network is not operating and your local system depends on a remote system to supply network addresses. |
The command finger or f displays information about the current users on a specified host. This information can include the user's login name, full name, and terminal name, as well as the date and time of login.
finger @alcatraz | Displays the following information about all users logged in to host alcatraz:
brown Console Mar 15 13:19 smith pts0 Mar 15 13:01 jones tty0 Mar 15 13:01 User brown is logged in at the console, user smith is logged in from a pseudo teletype line pts0, and user jones is logged in from a tty0. |
finger brown or brown@alcatraz | Displays the following information about the user brown:
Login name: brown In real life: Marta Brown Directory:/home/brown Shell: /bin/ksh On since May 8 07:13:49 on console No Plan. |