Launch the fkill interactive UI
mainRun fkill without any arguments to launch an interactive interface. This mode supports fuzzy searching to find processes.
In the UI:
🚦n%indicates high CPU usage.🐏n%indicates high memory usage.
$ fkillrepository·main·Indexed 25 days ago
https://github.com/sindresorhus/fkill-cliA cross-platform command-line tool for killing processes on macOS, Linux, and Windows. Supports terminating processes by PID, name, or port, and includes an interactive UI with fuzzy searching and CPU/memory usage indicators.
Run fkill without any arguments to launch an interactive interface. This mode supports fuzzy searching to find processes.
In the UI:
🚦n% indicates high CPU usage.🐏n% indicates high memory usage.$ fkillTo use the fkill command-line tool, install it globally using npm.
npm install --global fkill-cliThe fkill command supports several flags to modify kill behavior and matching logic:
--force, -f: Force kill the process.--verbose, -v: Show process arguments.--silent, -s: Silently kill and always exit with code 0.--force-timeout <N>, -t <N>: Force kill processes which didn't exit after N seconds.--smart-case: Case-insensitive unless the pattern contains uppercase.--case-sensitive: Force case-sensitive matching.Note: Process name matching is case-insensitive by default.
$ fkill --help
Usage
$ fkill [<pid|name|:port> …]
Options
--force, -f Force kill
--verbose, -v Show process arguments
--silent, -s Silently kill and always exit with code 0
--force-timeout <N>, -t <N> Force kill processes which didn't exit after N seconds
--smart-case Case-insensitive unless pattern contains uppercase
--case-sensitive Force case-sensitive matchingYou can kill processes by providing their Process ID (PID), their name, or the port they are listening on. To specify a port, prefix it with a colon (e.g., :8080).
Syntax:
fkill [<pid|name|:port> …]
The following flags are available for the fkill command:
| Flag | Short | Type | Description |
|---|---|---|---|
--force | -f | boolean | Force kill |
--verbose | -v | boolean | Show process arguments |
--silent | -s | boolean | Silently kill and always exit with code 0 |
--force-after-timeout <N> | -t <N> | number | Force kill processes which didn't exit after N seconds |
--smart-case | boolean | Case-insensitive unless pattern contains uppercase | |
--case-sensitive | boolean | Force case-sensitive matching |
Options
--force -f Force kill
--verbose -v Show process arguments
--silent -s Silently kill and always exit with code 0
--force-after-timeout <N>, -t <N> Force kill processes which didn't exit after N seconds
--smart-case Case-insensitive unless pattern contains uppercase
--case-sensitive Force case-sensitive matchingBy default, process name matching is case-insensitive. You can modify this behavior using the following flags:
--case-sensitive: Forces case-sensitive matching.--smart-case: Case-insensitive unless the input pattern contains any uppercase characters. If multiple inputs are provided and any one of them contains an uppercase character, all inputs will be matched case-sensitively.The fkill command allows you to kill processes by their PID, name, or port. If no arguments are provided, the CLI enters an interactive mode.
Usage Patterns:
$ fkill 1337$ fkill safari$ fkill :8080 (prefix the port with a colon)$ fkill 1337 safari :8080$ fkill (supports fuzzy search and displays CPU/Memory usage indicators: 🚦 for CPU, 🐏 for memory)$ fkill 1337
$ fkill safari
$ fkill :8080
$ fkill 1337 safari :8080
$ fkill