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

266 B
Raw Blame History

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