Shows user information. This command is the same as the finger command.
{ f | finger } [ [-b] [-h] [-l] [-p] ] | [-i] [-q] [-s] [-w] ]
[-f] [-m] [User | User@Host | @Host ]
The /usr/bin/f command displays information about the users currently logged in to a host. The format of the output varies with the options for the information presented.
The default format includes the following items:
For each user on the host, the default information list also includes, if known, the following items:
The site-specific information is retrieved from the gecos field in the /etc/passwd file. The gecos field may contain the Full user name followed by a comma. All information that follows the comma is displayed by the finger command with the Site-specific information.
A longer format is used by the f command whenever a list of user's names is given. (Account names as well as first and last names of users are accepted.) This format is multiline, and includes all the information described above along with the following:
The f command may also be used to look up users on a remote system. The format is to specify the user as User@Host. If you omit the user name, the f command provides the standard format listing on the remote system.
Create the .plan and .project files using your favorite text editor and place the files in your $HOME directory. The f command uses the toascii subroutine to convert characters outside the normal ASCII character range when displaying the contents of the .plan and .project files. The f command displays a M- before each converted character.
When you specify users with the User parameter, you can specify either the user's first name, last name, or account name. When you specify users, the f command, at the specified host, returns information about those users only in long format.
For other information about the f command, see "Installation and Configuration for TCP/IP" in AIX Version 4.3 System Management Guide: Communications and Networks.
f @alcatrazInformation similar to the following is displayed:
[alcatraz.austin.ibm.com] Login Name TTY Idle When Site Info brown Bob Brown console 2d Mar 15 13:19 smith Susan Smith pts0 11: Mar 15 13:01 jones Joe Jones tty0 3 Mar 15 13:01User brown is logged in at the console, user smith is logged in from pseudo teletype line pts0, and user jones is logged in from tty0.
f brown@alcatrazInformation similar to the following is displayed:
Login name: brown Directory: /home/brown Shell: /home/bin/xinit -L -n Startup On since May 8 07:13:49 on console No Plan.
f -q brownInformation similar to the following is displayed:
Login TTY When brown pts/6 Mon Dec 17 10:58
/usr/bin/f | Contains the f command. |
/etc/utmp | Contains list of users currently logged in. |
/etc/passwd | Defines user accounts, names, and home directories. |
/etc/security/passwd | Defines user passwords. |
/var/adm/lastlog | Contains last login times. |
$HOME/.plan | Optional file that contains a one-line description of a user's plan. |
$HOME/.project | Optional file that contains a user's project assignment. |
The hostname command, rwho command, finger command.
The fingerd daemon.
Displaying Information about Logged-In Users in AIX Version 4.3 System User's Guide: Communications and Networks.
Network Overview in AIX Version 4.3 System User's Guide: Communications and Networks.