I read many tutorials about the use of
kill command, mostly 3 approaches
kill -15 <pid> kill -SIGTERM <pid> kill -TERM <pid>
For scripts purposes and for portability with macos too, the code numbers are not going to be used. Because
kill -l in macos is different than Linux. So here enter in play the signal names.
- What is the correct or suggested approach to send the signal name through the
- SIGsomething or something?
And why? These 2 approaches exists for one reason, right? is there a mandatory reason to use an approach over the other?
This situation is for Ubuntu Desktop/Server and Fedora Workstation/Server