mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 13:24:30 +01:00
29 lines
380 B
Markdown
29 lines
380 B
Markdown
---
|
|
title: exec
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
Execute a command, replacing the current process.
|
|
|
|
## Signature
|
|
|
|
```> exec (command) ...rest```
|
|
|
|
## Parameters
|
|
|
|
- `command`: the command to execute
|
|
- `...rest`: any additional arguments for the command
|
|
|
|
## Examples
|
|
|
|
Execute external 'ps aux' tool
|
|
```shell
|
|
> exec ps aux
|
|
```
|
|
|
|
Execute 'nautilus'
|
|
```shell
|
|
> exec nautilus
|
|
```
|