• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pinky Command Examples in Linux

by admin

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 

Filed Under: Linux

Some more articles you might also be interested in …

  1. cal Command Examples in Linux
  2. calcurse: command not found
  3. How To Setup UDEV Rules For RAC OCR And Voting Devices on Partitions
  4. rename: command not found
  5. Understanding /etc/security/limits.conf file
  6. CentOS / RHEL : How to prevent disabled repositories from being downloaded into the yum cache
  7. How to configure iSCSI Initiator (client) in CentOS / RHEL 7
  8. How to check failed or bad login attempts in Linux
  9. How to Change the Default Timeout Settings for Telnet Session in CentOS/RHEL
  10. Shopt: Not Found [No Such File Or Directory]

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright