GO KALI FREE
Process Commands

pgrep Linux Command

Searches for processes by name and returns their PIDs.

What does pgrep do?

Searches for processes by name and returns their PIDs.

Syntax

pgrep [options] pattern

Practical example

pgrep -u kali bash

Related Process Commands

nohup

Runs a command that keeps running even after the terminal session is closed.

ps

Reports a snapshot of current running processes with their PIDs.

renice

Changes the priority (niceness) of an already running process.

top

Displays an interactive, real-time view of system processes and resource usage.

nice

Runs a command with a specified scheduling priority (niceness value).

htop

Enhanced, more user-friendly version of top with color and mouse support.