computer_knowledge_notes/Software/进程管理/exec.md

8 lines
266 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```
exec [options] [command [args]] [redirections] # 使用command来替代shell即借尸还魂尸是shell但魂已经变成command
-a name # 将name传给command做为0号参数
-c # 使用空环境来执行command
-l # 给0号参数加个破折号
```