在 Cygwin 上,我可以kill
从 bash 访问,但是当我尝试执行时killall
,收到一条错误消息,提示“不可用”。
我如何进入killall
Cygwin?
答案1
使用包搜索来定位包killall
https://cygwin.com/cgi-bin2/package-grep.cgi
https://cygwin.com/cgi-bin2/package-grep.cgi?grep=bin%2Fkillall&arch=x86_64
搜索结果 找到 5 个与 bin/killall 相关的结果
busybox-1.23.2-1 - busybox: Tiny utilities in a single executable (installed binaries and support files) psmisc-debuginfo-22.20-1 - psmisc-debuginfo: Debug info for psmisc (installed binaries and support files) psmisc-22.20-1 - psmisc: Utilities for managing processes on your system (installed binaries and support files) sysvinit-debuginfo-2.86-1 - sysvinit-debuginfo: Debug info for sysvinit (installed binaries and support files) sysvinit-2.86-1 - sysvinit: A System-V Init Clone (installed binaries and support files)
psmisc 就是您需要的。
答案2
使用 Cygwin Setup安装psmisc
包(默认情况下显然不会安装)。这将为您提供命令killall
。