Pinky command in Linux with Examples
Last Updated :
10 May, 2020
Pinky command is a user information lookup command which gives details of all the users logged in. This tool is generally used by system administrators. It is similar to the finger tool but in many Linux, Systems pinky comes pre-installed while finger doesn't, so this command is useful in case you don't have the right to install a program. Unlike finger, in the pinky, you may trim the information of your interest.
Installing pinky User Information Lookup Tool
To install the pinky tool use the following commands as per your Linux distribution.
In case of Debian/Ubuntu
$sudo apt-get install pinky
In case of CentOS/RedHat
$sudo yum install pinky
In case of Fedora OS
$sudo dnf install pinky
Working with pinky User Information Lookup Tool
1. To get the details of logged in users.
$pinky

As can be seen, it displays the login name, name, idle time of the users who are logged in to the system.
2. To get the report of a single user
$pinky manav
Note: Here "manav" is the username.

As can be seen, it displays the idle status along with the details of the user-specified.
3. To avoid printing column headings
$pinky -f

As can be seen, it only displays the information of users logged in without their headings.
4. To remove the name column
$pinky -w

This will remove the name column from the output.
5. To remove the name and where column
$pinky -i

This will remove the name and where column from the output.
6. To remove the name, idle and where columns
$pinky -q

This will remove the name, idle and where column from the output.
7. To get complete details of a user(long view)
$pinky -l manav
Note: Here "manav" is the username.

This will give all the details of the user.
8. To remove the directory and shell line from long view of a user
$pinky -l -b manav
Note: Here "manav" is the username.

This will remove the directory and shell line from the long detail view of user.
9. To remove the plan and project file line from the long view of a user.
$pinky -l -h -p manav
Note: Here "manav" is the username.

This will remove the plan and project line from the long detail view of user.
Similar Reads
mpstat Command in Linux with Examples mpstat is a powerful and versatile command-line tool within a Linux system that allows detailed reporting of various processor-related statistics. Indeed, part of the sysstat package, mpstat delivers comprehensive CPU utilization and performance data, thus becoming an essential utility for both syst
5 min read
How to Move File in Linux | mv Command In UNIX-based operating systems like Linux and macOS, `mv` stands for "move". The mv command is a UNIX command for renaming and moving files and directories within a filesystem. Although desktop operating systems have graphical user interfaces for file operations, calling mv in the terminal, usually
7 min read
Practical Uses of nc(netcat) command in Linux Netcat is one of the most powerful networking tools, security tools, and network monitoring tools. It is even considered a Swiss army knife of networking tools. It acts like a cat command over a network. It is generally used for the following reasons:Operation related to TCP, UDP, or UNIX-domain soc
7 min read
Netstat command in Linux The netstat command is like a special tool in Linux that helps you understand and check things about how your computer connects to the internet. It can tell you about the connections your computer is making, the paths it uses to send information, and even some technical details like how many packets
7 min read
Manage Network Connections From the Linux Command Line with nmcli Network connectivity is a critical aspect of modern computing, and Linux provides a robust command-line tool for managing network connections: nmcli. Network Manager Command-Line Interface (nmcli) is a powerful and versatile utility that allows users to control and configure network settings directl
5 min read
Nslookup Command in Linux with Examples Nslookup (stands for âName Server Lookupâ) is a useful command for getting information from the DNS server. It is a network administration tool for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or any other specific DNS record. It is also used to troubleshoot DNS-
6 min read
od command in Linux with example The od (octal dump) command in Linux is a versatile tool used to display file contents in various formats, with the default being octal. This command is particularly useful for debugging scripts, examining binary files, or visualizing non-human-readable data like executable code. It allows users to
6 min read
How to Change User Password in Linux | passwd Command Securing user accounts is a fundamental aspect of maintaining a robust and secure Linux system. One essential task is changing user passwords regularly to prevent unauthorized access. The passwdpasswd command in Linux provides a straightforward and effective way to modify user passwords. This articl
8 min read
Paste command in Linux with examples Paste command is one of the useful commands in Unix or Linux operating system. It is used to join files horizontally (parallel merging) by outputting lines consisting of lines from each file specified, separated by tab as delimiter, to the standard output. When no file is specified, or put dash ("-"
6 min read
pidof Command in Linux with Examples pidof command is used to find out the process IDs of a specific running program. It is basically an identification number that is automatically assigned to each process when it is created. Syntax: pidof [options] program1 program2 ... programNWorking with Pidof Command 1. To find pid of any process
2 min read