killp is a simple command-line tool to manage and kill processes. It allows you to view a list of active processes and kill them by providing their process ID.
To build the killp CLI tool, run the following command:
go build -o killp main.go process.go
# build for mac+win+linux in one go
./build.sh
This will generate an executable named killp
in the current directory.
You can find the pre-built binaries on the Releases overview.
To run the killp tool without building, use the following command:
go run main.go process.go [flags] [arguments]
Replace [flags]
with any flags you want to use (e.g., -list) and [arguments]
with any required arguments for the command.
killp <process_id>
: Kill a process by its process IDkillp -list
: List active processeskillp -list <filter>
: List active processes containing the filter in their name