The finger
command is used to display information about users on a system. It provides details such as login name, real name, terminal, idle time, and more. This command is particularly useful for system administrators and users who want to see who is logged in and gather information about them.
The basic syntax of the finger
command is as follows:
finger [options] [arguments]
-l
: Displays a longer format of user information, including the user’s home directory and shell.-m
: Matches the user name case-insensitively.-s
: Displays a short format, showing only the login name and the user’s real name.-p
: Suppresses the display of the user’s plan file and project information.Here are some practical examples of how to use the finger
command:
finger
finger username
finger -s
finger -p username
finger -m USERNAME
finger
to quickly check who is logged into the system and their status.finger -ls username
for detailed information in a short format.finger
command may depend on your system configuration and user permissions.