Ubuntu killall Command Explained in Detail


killall 用于按名称杀死指定进程 (kill processes by name)。

以前,若要找到杀死进程,需使用 ps 命令配合 grep 查找进程,而 killall 却把这 2 个过程合二为一了。

Such as: killall memcached

 

Basic Syntax


killall [OPTION]... [--] NAME...

killall -l, --list

killall -V, --version

 

Options

# Parameter EN Explanation Chinese Translation Remark
-e,--exact require exact match for very long names
-I,--ignore-case case insensitive process name match
-g,--process-group kill process group instead of process
-y,--younger-than kill processes younger than TIME
-o,--older-than kill processes older than TIME
-i,--interactive ask for confirmation before killing
-l,--list list all known signal names
-q,--quiet don't print complaints
-r,--regexp interpret NAME as an extended regular expression
-s,--signal SIGNAL send this signal instead of SIGTERM
-u,--user USER kill only process(es) running as USER
-v,--verbose report if the signal was successfully sent
-V,--version display version information
-w,--wait wait for processes to die

Detailed Usage

Feature # Command Specification Literal Explanation Example Example Explanation
杀死进程 killall <command-name> 杀死指定名称进程 killall memcached 杀死 memcached 进程
帮助 killall --help 查看 killall 帮助信息
查看版本 killall --version 查看 killall 版本信息
Digital Translate

Digital Translate

Windows Vista / 7 / 8 / 10 (x64 bits)

Download     Net Disk 1     Net Disk 2     Net Disk 3