gpt4 book ai didi

linux - ubuntu 上的 killall 无法按预期工作查找进程名称

转载 作者:太空宇宙 更新时间:2023-11-04 11:31:21 26 4
gpt4 key购买 nike

user@server:~$ ps fax | grep goh_launcher
11552 pts/2 S+ 0:00 \_ grep --color=auto goh_launcher
4273 ? S 1:41 /usr/bin/php -q /usr/local/bin/goh_launcher.php

user@server:~$ killall -i goh_launcher.php
goh_launcher.php: nessun processo trovato

user@server:~$ killall -i goh_launcher.ph
Terminare goh_launcher.ph(4273)? (s/N)

为什么查找“goh_launcher.php”无效,而删除最后一个“p”却有效?

这是 Ubuntu LTS 12.04。

最佳答案

来自 killall 联机帮助页:

-e, --exact Require an exact match for very long names. If a command name is longer than 15 characters, the full name may be unavailable (i.e. it is swapped out). In this case, killall will kill every- thing that matches within the first 15 characters. With -e, such entries are skipped. killall prints a message for each skipped entry if -v is specified in addition to -e,

我相信您的第一个命令超出了该字符限制 1 个字符。

关于linux - ubuntu 上的 killall 无法按预期工作查找进程名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11091719/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com