mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 21:37:54 +02:00
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
@ -1,34 +1,37 @@
|
||||
# kill
|
||||
---
|
||||
title: kill
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
Kill a process using the process id.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> kill <pid> ...args {flags}
|
||||
```
|
||||
## Signature
|
||||
|
||||
```> kill (pid) ...rest --force --quiet --signal```
|
||||
|
||||
## Parameters
|
||||
* `<pid>` process id of process that is to be killed
|
||||
* ...args: rest of processes to kill
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -f, --force: forcefully kill the process
|
||||
* -q, --quiet: won't print anything to the console
|
||||
* -s, --signal <integer>: signal decimal number to be sent instead of the default 15 (unsupported on Windows)
|
||||
- `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
|
||||
```shell
|
||||
> ps | sort-by mem | last | each { kill $it.pid }
|
||||
```
|
||||
|
||||
Force kill a given pid
|
||||
Kill the pid using the most memory
|
||||
```shell
|
||||
> ps | sort-by mem | last | kill $in.pid
|
||||
```
|
||||
|
||||
Force kill a given pid
|
||||
```shell
|
||||
> kill --force 12345
|
||||
```
|
||||
```
|
||||
|
||||
Send INT signal
|
||||
Send INT signal
|
||||
```shell
|
||||
> kill -s 2 12345
|
||||
```
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user