systemctl list-units --type=service | grep running | while read -r unit; do systemctl is-active "$unit" | grep -q active && echo "$unit is alive" done But these are clumsy. lsalive would be elegant. Concise. A single word that separates the living from the merely loaded. lsalive may not exist as a standard command — yet. But it should. Because in a world of containers, microservices, and ephemeral instances, we don’t just need to know what’s there. We need to know what still answers when called.
for pid in $(pgrep -u root); do kill -0 $pid 2>/dev/null && echo "PID $pid is alive"; done Or for services: lsalive
In that sense, lsalive becomes a litmus test for the soul of a machine. It’s the command you run when you need to know: 👉 Is the system just running — or truly alive? You can simulate lsalive today with a creative one-liner: systemctl list-units --type=service | grep running | while