The pinky command in Linux is a lightweight version of the finger command. It displays basic information about logged-in users in a clean, compact format.
๐ What is pinky?
pinky shows quick details about users currently logged into the system.
๐ Itโs faster and simpler than finger
๐ Useful for system monitoring and multi-user environments
โ Basic Syntax
pinky [options] [username]
๐ Show All Logged-In Users
pinky
๐ Displays:
- Username
- Terminal (TTY)
- Login time
- Idle time
- Location (if available)
๐ค Show Info for a Specific User
pinky username
๐ Shows details for a single user
โ๏ธ Useful Options
| Option | Description |
|---|---|
-l | Long format (more details) |
-b | Omit userโs home directory |
-h | Omit project file |
-p | Omit plan file |
-s | Short format (default) |
๐งช Example: Long Format
pinky -l user
๐ Displays:
- Full name
- Home directory
- Shell
- Login details
๐ Real-World Uses
- Check who is logged into a system
- Monitor user activity
- Quickly gather user info without extra clutter
โ ๏ธ Common Notes
- Not all systems have
fingerinstalled, butpinkyis usually available - Output depends on system configuration
- May not show full details if privacy settings restrict it
๐ง Pro Tips
- Combine with
whofor deeper insight - Use in scripts to monitor active users
- Use
-lwhen you need more detailed info
๐ Quick Summary
pinkyshows logged-in user info- Lightweight alternative to
finger - Supports short and long output formats
- Useful for quick system checks
๐ฏ Final Thoughts
The pinky command is a simple yet effective tool for viewing user information in Linux. While it doesnโt provide as much detail as finger, its speed and simplicity make it perfect for quick checks and scripts.