Linux Commands Helper

💬 Your AI-powered Linux assistant

pidof Command - Find the Process ID (PID) of a Running Program

The pidof command is used to find the process ID (PID) of a running program by its name. It is useful for scripting and process management.

Syntax

pidof [options] program

Examples

pidof sshd

Show the PID(s) of the sshd process.

pidof -s bash

Show only the first PID of the bash process.

Notes

  • pidof returns all PIDs matching the program name.
  • For more detailed process information, use ps.
  • May not find processes started with a different name or path.

Related Linux Commands:

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame