how to kill process in linux

C++
kill -9 3827

kill -9 3919

kill -9 10764

kill -9 11679#terminate process with SIGKILL signal by process id
kill -9 pidkill -9 PID # kill -9 94228ps aux | grep chromeps ux # list the running Process with PID
kill xxxx # hear xxxx is the process idkill <processID>
Source

Also in C++: