finger Linux Commands

What is Linux finger Command?

Explanation

finger COMMAND:

finger command displays the user's login name, real name, terminal name and write status (as a ''*'' after the terminal name if write permission is denied), idle time, login time, office location and office phone number..

SYNTAX :


finger [-lmsp] [user ...] [user@host ...]

OPTIONS:


- l Prints all the information described by -s option and also the user's home directory, home phone number, login shell, mail status, and the contents of the files ".plan",".project",".pgpkey", and ".forward" from the users home directory.
- m Match arguments only on user name (not first or last name).
- p Supress the prinitng format of -l, It will not display the contents of ".plan",".project", and ".pgkey" files.
- s Prints the output in short format.

EXAMPLE:


  1. To Print the user information in short format:
    finger -s hiox
    Login
    Name
    Tty
    Idle LoginTime
    Office OfficePhone HIOX
    HIOX INDIA
    *:0
    Sep 14 09:07 HIOX
    HIOX INDIA
    *pts/0
    9 Sep 14 09:08 HIOX
    HIOX INDIA
    *pts/1 1:29 Sep 14 09:12

    finger command prints the user information as user's login name, real name, terminal name and write status, idle time, login time, office location and office phone number.

Ask Questions

Ask Question