1# exec 2 3 4## Command Function 5 6This command is a built-in shell command used to execute basic user-mode programs. 7 8 9## Syntax 10 11exec <*executable-file*> 12 13 14## Parameters 15 16**Table 1** Parameter description 17 18| Parameter | Description | 19| --------------- | ------------------ | 20| executable-file | Specifies a valid executable file.| 21 22 23## Usage Guidelines 24 25Currently, this command supports only valid binary programs. The programs are successfully executed and then run in the background by default. However, the programs share the same device with the shell. As a result, the output of the programs and the shell may be interlaced. 26 27 28## Example 29 30Run **exec helloworld**. 31 32 33## Output 34 35 36``` 37OHOS # exec helloworld 38OHOS # hello world! 39``` 40 41> **NOTE**<br> 42> After the executable file is executed, the prompt **OHOS #** is printed first. The shell **exec** command is executed in the background, causing the prompt to be printed in advance. 43