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:

  1. ps -ef | grep dagster-webserver

  2. kill -9 PID

New Process:

  1. pkill -SIGTERM -f dagster-webserver

Reference Items:

  1. youtube.com/watch?v=KdSKTEUPPEk
  2. youtube.com/watch?v=KdSKTEUPPEk