azl397985856 / fe-interview

宇宙最强的前端面试指南 (https://lucifer.ren/fe-interview)
Apache License 2.0
2.83k stars 260 forks source link

【每日一题】- 2020-05-04 - 在终端输入命令后系统做了什么? #121

Closed azl397985856 closed 4 years ago

watchpoints commented 4 years ago

执行shell命令 ,是调用fork进程,创建子进程,就是自己执行shell命令或者启动程序

xiaohuazi123 commented 4 years ago

fork一个子进程,然后启动子shell,执行用户命令

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.