Spec-Zone.ru › Nushell

kill for platform

Kill a process using its process ID.

Signature

> kill {flags} ...rest

Flags

  • --force, -f: Forcefully kill the process.
  • --quiet, -q: Won't print anything to the console.
  • --signal, -s {int}: Signal decimal number to be sent instead of the default 15 (unsupported on Windows).

Parameters

  • ...rest: Process ids of processes that are to be killed.

Input/output types:

input output
nothing any

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

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/kill.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API