Kill /
Using kill
To kill(1) a process, first find its process ID using usage, then:
$ kill $PID
Replace $PID with the actual process ID.
To kill a process by name, use pkill(1). For example, to kill the web server:
$ doas pkill httpd
WARNING: Use pkill with caution! The pkill will kill any process that matches the string, including processes you did not intend to kill! It's safer to use ps to find the process ID, then to use kill(1).