gitmyhub

fkill-cli

JavaScript ★ 7.0k updated 8mo ago

Fabulously kill processes. Cross-platform.

fkill-cli is a cross-platform command-line tool to stop running processes by name, ID, or port number, with an interactive fuzzy-search picker when you run it without arguments.

JavaScriptNode.jssetup: easycomplexity 1/5

fkill-cli is a small command-line tool that lets you stop running programs on your computer. It works on macOS, Linux, and Windows. You install it once via npm and then use it from a terminal whenever you need to shut down a process that is stuck or that you want to close.

You can target a process by its numeric ID, by its name, or by the network port it is listening on. For example, typing fkill safari stops Safari, and fkill :8080 stops whatever program is using port 8080. You can also list several targets at once to stop multiple processes in a single command.

If you run fkill without any arguments it opens an interactive screen where you can browse running processes and pick which ones to stop. This view supports fuzzy search, so you can type part of a name to filter the list. It also shows indicators for processes using a lot of CPU or memory, which makes it easier to spot the ones causing problems.

A force-kill option is available for processes that ignore a normal stop request, and a timeout option lets you specify how many seconds to wait before escalating to a force kill.

Where it fits