如果我想杀死该文件管理器的所有实例,我会这样做
killall thunar
这给了我
thunar: no process found
但是这个 FM 肯定在运行!
同样
ps aux | grep thunar
没有找到任何东西并产生:
cadoiz 27791 0.0 0.0 9588 2656 pts/0 S+ 11:33 0:00 grep --color=auto thunar
大写Thunar(试图用killall杀死它)对我不起作用。
$ pgrep thunar # Look for thunar (lower case).
9847 # Found it; pid provided.
$ killall Thunar # Try to kill with capital 'T'
Thunar: no process found # Killall didn't find 'Thunar'.
$ killall thunar # Killall must have found; no complaint.
$ pgrep thunar # See if killall worked.
9847 # Killall failed. Process still running.
$ killall garbage # Invoke killall with non-existent process.
garbage: no process found # Killall complains.
$