Skip to content

finger Linux Command Guide

The Linux finger command is a powerful tool used to retrieve information about users on a Unix system. It provides details such as login name, full name, terminal name, write status, idle time, login time, office location, and more. By simply typing “finger” followed by a username, you can access a wealth of information. Additionally, the finger command can be used to query remote machines and display information on users logged into those systems. This guide covers the basic syntax, options, and practical examples to help you make the most out of the finger command.

Terminal window
finger [username]
OptionDescription
-lDisplay detailed information
-sSuppress the banner line
-mEnable messaging feature
-hDisplay help information
ParameterDescription
usernameName of the user to get information about
Terminal window
finger username

Displays details about a specific user, including login time, idle time, home directory, and more.

Terminal window
finger

Lists information about all currently logged-in users on the system.

Terminal window
finger user1 user2

Retrieves details for multiple users specified in the command.

Terminal window
finger *name*

Searches for users matching a specific pattern or part of a username.

Terminal window
finger user@remotehost

Displays information about a user logged in on a remote host.

Display User Information in a Compact Format

Section titled “Display User Information in a Compact Format”
Terminal window
finger -s user

Shows user details in a condensed format to fit more information on the screen.

Display Information and Plan File of a User

Section titled “Display Information and Plan File of a User”
Terminal window
finger -l username

Provides comprehensive details about a user, including their plan file content.

To use the finger command in Linux, execute the following command:

Terminal window
finger

What is the syntax for using finger in Linux to get information about a specific user?

Section titled “What is the syntax for using finger in Linux to get information about a specific user?”

To get information about a specific user using the finger command in Linux, you can use the following syntax:

Terminal window
finger username

How can I display the idle time of users with the finger command in Linux?

Section titled “How can I display the idle time of users with the finger command in Linux?”

You can display the idle time of users using the finger command in Linux by executing the following command:

Terminal window
finger -l

Is it possible to get a short format output with the finger command in Linux?

Section titled “Is it possible to get a short format output with the finger command in Linux?”

Yes, you can get a short format output with the finger command in Linux using the following command:

Terminal window
finger -s

How to display the full format output with the finger command in Linux?

Section titled “How to display the full format output with the finger command in Linux?”

To display the full format output with the finger command in Linux, you can use the following command:

Terminal window
finger -f

Can I limit the information displayed by the finger command in Linux?

Section titled “Can I limit the information displayed by the finger command in Linux?”

Yes, you can limit the information displayed by the finger command in Linux using the following command:

Terminal window
finger username -m
  • Display information about users
  • Check if a user is logged in
  • Show email forwarding addresses for a user
  • Display the last login time of a user
  • View the full name, home directory, shell, and other details of a user