• 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. How to increase swap space on Linux
  2. CentOS / RHEL : How to find free space in a Volume Group in LVM
  3. How to Set a Custom Interface Name with NetworkManager in CentOS/RHEL 7
  4. Linux OS Service ‘winbind’
  5. How to configure resource groups for MySQL Server running on Linux
  6. UNIX / Linux : Send mail with attachment using mutt
  7. Shopt: Not Found [No Such File Or Directory]
  8. Starting iptables Fails with Error “Another app is currently holding the xtables lock”
  9. “Authorization not available. Check if polkit service is running or see debug message for more information” – CentOS/RHEL 7 ssh service error
  10. Dependency failed for NFS server and services

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright