Cmd Generator

pkill

Kill processes by name or other attributes.

pkill

Examples

# Kill a process by name
pkill nginx

# Force kill
pkill -9 firefox

# Kill by full command line
pkill -f "node server.js"

# Kill all processes of a user
pkill -u john

# Send SIGHUP
pkill -HUP nginx

# Exact match
pkill -x sshd

# Preview before killing
pkill -e -f "python script"

Sponsors