The Difference Between killand pkill
The kill command is a wrapper to the killsystemcall, which knows only about process IDs. pkill can determine the process ID based on things like, process name, owner of the process orsession id.
Syntax:
$ kill1234
$ pkill -f node