job kill

For experimental.

Kill a background job.

Command Type

built-in

Signature

> job kill {flags} (id)

Parameters

  • id: The id of the job to kill.

Input/output types:

input output
nothing nothing

Examples

Kill a newly spawned job.

> let id = job spawn { sleep 10sec }; job kill $id

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.