mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 16:54:58 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
34
docs/commands/kill.md
Normal file
34
docs/commands/kill.md
Normal file
@ -0,0 +1,34 @@
|
||||
# kill
|
||||
Kill a process using the process id.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> kill <pid> ...args {flags}
|
||||
```
|
||||
|
||||
## 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)
|
||||
|
||||
## Examples
|
||||
Kill the pid using the most memory
|
||||
```shell
|
||||
> ps | sort-by mem | last | kill $it.pid
|
||||
```
|
||||
|
||||
Force kill a given pid
|
||||
```shell
|
||||
> kill --force 12345
|
||||
```
|
||||
|
||||
Send INT signal
|
||||
```shell
|
||||
> kill -s 2 12345
|
||||
```
|
||||
|
Reference in New Issue
Block a user