Question: please answer briefly, does not need to be long answer just need to understand how to use the following function using a node.js shell on

please answer briefly, does not need to be long answer just need to understand how to use the following function using a node.js shell on a LINUX system. will UPVOTE!!!
Question: Install node.js on your machine. How could you use child_process.execFileSync() to do the following shell commands in node? Note you may need additional node statements before or after this call.
* ls -l /home
* ls -l /home > /tmp/homefiles.txt
* sort unsorted.txt -o sorted.txt
* sort < unsorted.txt > sorted.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!