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.

finger Syntax:

Terminal window
finger [username]

Options:

OptionDescription
-lDisplay detailed information
-sSuppress the banner line
-mEnable messaging feature
-hDisplay help information

Parameters:

ParameterDescription
usernameName of the user to get information about

finger Command Samples:

Query User Information

Terminal window
finger username

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

List All Logged-In Users

Terminal window
finger

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

Display Information for Multiple Users

Terminal window
finger user1 user2

Retrieves details for multiple users specified in the command.

Search for Users by a Specific Pattern

Terminal window
finger *name*

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

Check for Remote User Information

Terminal window
finger user@remotehost

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

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

Terminal window
finger -l username

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

finger FAQ:

How do I use finger in Linux?

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?

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?

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?

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?

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?

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

Terminal window
finger username -m

Applications of the finger command

  • 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