Tagged articles

pkill

6 articles · Page 1 of 1
Liangxu Linux
Liangxu Linux
Aug 11, 2024 · Operations

Make Bash Scripts Self‑Terminate: Using trap, kill, and pkill Effectively

This guide explains why background loops in Bash scripts can linger after the script ends, how they become orphaned under init/systemd, and provides robust techniques—including trap, kill, pkill, and signal 0—to ensure all child processes are terminated when the script exits.

Process Managementbashkill
0 likes · 11 min read
Make Bash Scripts Self‑Terminate: Using trap, kill, and pkill Effectively
Open Source Linux
Open Source Linux
Sep 22, 2022 · Operations

Master Linux Process Termination: kill, killall, and pkill Explained

Learn how to identify and terminate Linux processes using commands like kill, killall, and pkill, including signal options, PID retrieval methods, and practical examples for both foreground and background tasks, ensuring safe and effective process management on Unix-like systems.

Kill CommandLinuxkillall
0 likes · 6 min read
Master Linux Process Termination: kill, killall, and pkill Explained