Question: If the child_process module methods are in scope, what is a current way to execute the command ps -ef using a child process?
- spawn("ps -ef")
- exec("ps -ef")
- exec("ps", "-ef")
- fork("ps -ef")
Answer: The correct answer of the above question is Option B:exec("ps -ef")