nushell/docs/commands/kill.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

677 B

title layout version
kill command 0.59.0

Kill a process using the process id.

Signature

> kill (pid) ...rest --force --quiet --signal

Parameters

  • pid: process id of process that is to be killed
  • ...rest: rest of processes to kill
  • --force: forcefully kill the process
  • --quiet: won't print anything to the console
  • --signal {int}: signal decimal number to be sent instead of the default 15 (unsupported on Windows)

Examples

Kill the pid using the most memory

> ps | sort-by mem | last | kill $in.pid

Force kill a given pid

> kill --force 12345

Send INT signal

> kill -s 2 12345