Quiz: Controlling Processes
Test your knowledge of controlling processes with Go.
1
What’s the correct syntax to create an instance of exec.Cmd
type that executes the external command ps -ef
?
A)
cmd := exec.Command("ps -ef")
B)
cmd := exec.Command("ps", "-ef")
C)
cmd := exec.Cmd("ps", "-ef")
D)
cmd := exec.Cmd("ps -ef")
Question 1 of 40 attempted
Get hands-on with 1400+ tech skills courses.