1.

To run the script, we should make it executable first by using _____(a) chmod +x(b) chmod +r(c) chmod +w(d) chmod +rwxI have been asked this question in examination.My question comes from Shell Programming using read Command and Command Line Arguments in chapter Essential Shell Programming of Unix

Answer»

The correct choice is (a) chmod +X

The BEST I can explain: Before we run the script, it is ESSENTIAL to make the script executable first. After that INVOKE the script NAME to run the script. For making the script executable, we have to use chmod +x script_name.



Discussion

No Comment Found

Related InterviewSolutions