← 返回命令列表

Linux command

fkill 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Interactive process killer

fkill

Kill by name

fkill [process_name]

Kill by port

fkill :[port]

Kill by PID

fkill [pid]

Force kill

fkill -f [process_name]

Kill silently

fkill -s [process_name]

Kill multiple targets

fkill [process_name] [pid] :[port]

Force kill after timeout

fkill -t [5] [process_name]

说明

fkill is a cross-platform process killer with an interactive interface. It provides fuzzy search for selecting processes to terminate, supporting multiple selection methods. The tool can kill processes by name, PID, or port number (prefix the port with :, e.g. `:8080`). Multiple targets can be passed at once. In interactive mode, it displays a searchable list of running processes with CPU and memory usage, allowing users to select targets with arrow keys and fuzzy matching. Written in Node.js and distributed via npm (`npm install --global fkill-cli`), fkill works consistently across Linux, macOS, and Windows.

参数

-f, --force
Force kill (SIGKILL instead of SIGTERM).
-s, --silent
Silently kill and always exit with code 0.
-v, --verbose
Show process arguments alongside names in the interactive list.
-t _N_, --force-timeout _N_
Force kill processes that didn't exit after _N_ seconds.
--smart-case
Case-insensitive matching unless the pattern contains uppercase letters.
--case-sensitive
Force case-sensitive matching of process names.

FAQ

What is the fkill command used for?

fkill is a cross-platform process killer with an interactive interface. It provides fuzzy search for selecting processes to terminate, supporting multiple selection methods. The tool can kill processes by name, PID, or port number (prefix the port with :, e.g. `:8080`). Multiple targets can be passed at once. In interactive mode, it displays a searchable list of running processes with CPU and memory usage, allowing users to select targets with arrow keys and fuzzy matching. Written in Node.js and distributed via npm (`npm install --global fkill-cli`), fkill works consistently across Linux, macOS, and Windows.

How do I run a basic fkill example?

Run `fkill` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --force do in fkill?

Force kill (SIGKILL instead of SIGTERM).