How To Kill Processes In Command Line Like A Pro
See why thousands are abandoning tedious process management for efficient command line techniques.
1 min read
I love working in #cli a lot. There is a common task of running daemon processes and then killing them at later stage.
Nowadays, I am building a project with dagster. I have been running Dagster locally, as documented at docs.dagster.io/deployment/guides/servi….
Let’s say I want to kill the running dagster webserver:
Old Tedious Process:
-
ps -ef | grep dagster-webserver
-
kill -9 PID
New Process:
pkill -SIGTERM -f dagster-webserver