Hey guys I know this is a question that has been tackled few times with different flavors. I was just curious if any of you knew the magical hot-key in Ubuntu to kill a node process without facing the infamous EADDRINUSE ::XXXX issue when you restart your process. I know already there are many ways of finding the pid of the process using the port and properly killing it;
sudo ss -lptn 'sport = :XXXX'
kill -9 PID
But there must be a nicer way.
In the hope of some Linux guru may help.
Thanks