nushell/docs/commands/exec.md

380 B

title layout version
exec command 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

> exec ps aux

Execute 'nautilus'

> exec nautilus