ps看到的程序的名稱 - Linux

Table of Contents

執行一個程式的時候
可以從/proc/(pid)/cmdline 看到invoke(想不到中文)程式的方式

invoke cmdline

$ bash /path/script => bash /path/script

$ /path/script => interpreter /path/script

$ cat => cat

這是由什麼(哪個軟體 or OS)決定的?
如果想更變的話, 可以怎麼作呢

像是讓

$ /path/script => script

(因為我的script中有很多 & 和 (), 會生出很多名字一樣的subshell
不能用killall, 還要ps axf找出pid才能kill.... )

--

All Comments