Kill a process

By process id (pid)

Find the process id

To see all processes: ps aux

Only by name: ps aux | grep name

Only the process id by name: pidof name

Kill the process

Kill immediately and absolutely: kill -9 pid

Kill gracefully (tell it to please shut down and wrap things up first): kill -15 pid

Other commands

  • killall
  • pkill

References:

8 / 2023