pinky Command Examples in Linux

Pinky command prints the user information. It is a light-weight finger program that has both long and short formats. If no users are specified, it prints information for all logged-on users.

Common options:

  • -b: In long format, omit the home directory and shell.
  • -f: In short format, omit column headings.
  • -h: In long format, omit the project file.
  • –help: Print help message and exit.
  • -i: In short format, omit the full name and remote host.
  • -l: Produce long-format output for the specified users. At leastone user must be specified.
  • -p: In long format, omit the plan file.
  • -q: In short format, omit the full name, remote host, and idletime.
  • -s Produce short format output; the default.

pinky Command Examples

1. To display the information about the users:

# pinky 

2. To produce the long format output:

# pinky -l 

3. To omit the userâs home directory and shell in long format:

# pinky -b 

4. To omit the userâs project file in long format:

# pinky -h 

5. To omit the userâs plan file in long format:

# pinky -p 

6. To do short format output, this is the default:

# pinky -s 

7. To omit the line of column headings in short format:

# pinky -f 

8. To omit the userâs full name in short format:

# pinky -w 

9. To omit the userâs full name and remote host in short format:

# pinky -i 

10. To omit the userâs full name, remote host and idle time in short format:

# pinky -q 

11. To display the help:

# pinky --help 

12. To get the version info:

# pinky --version 
Related Post