Node.js - Child Processes
Which of the following is the correct syntax to spawn a process running the command
ls -l?ls -l?The first argument is the command, the second is an array of arguments.
Use spawn('ls', ['-l']) to run ls with -l option.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions