How do I terminate a process similarly to kill -9 $PID
?
I would like to do the same as GNU/Linux offers: For example, a shell is running a Telnet session to a router, but later that router is powered off. Consequently, the shell is unusable. All I have to do is lookup the process ID matching telnet $IPv4_of_router
and then issue kill -9 $Process_ID
. This is just an example. However, how do I terminate a process?