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] patternPractical example
pgrep -u kali bashRelated Process Commands
nohupRuns a command that keeps running even after the terminal session is closed.
psReports a snapshot of current running processes with their PIDs.
reniceChanges the priority (niceness) of an already running process.
topDisplays an interactive, real-time view of system processes and resource usage.
niceRuns a command with a specified scheduling priority (niceness value).
htopEnhanced, more user-friendly version of top with color and mouse support.