How to kill a process in Linux?

I installed node.js and ran it with a script. I’ve made a couple of changes and would like to restart node.js. Does anyone know what command to use to kill / start this?

The command to start node.js is just this (as instructed by developer):

node js/server.js


If you haven’t already found help elsewhere… try something like:

ps aux | grep node

that should give you (at least) one line of output, with the process ID (PID) of the offending process near the front. Then take that PID number, and run the following:

kill -9 <pid#>

That should kill the process, no ifs ands or buts about it.

Highly recommended to read the man pages on the various commands, especially ‘kill’, before using.