1.

Suppose run_me.sh is a script file. Which command is used to make it executable?(a) chmod +e run_me.sh(b) chmod +a run_me.sh(c) chmod +y run_me.sh(d) chmod +x run_me.shI got this question in an internship interview.This intriguing question comes from Interacting with MySQL topic in chapter General MySQL Use of MySQL

Answer»

The correct choice is (d) chmod +x run_me.sh

For explanation: The command ‘chmod +x file_name’ MAKES a SCRIPT FILE executable. MYSQL supports reading from a script file and executing queries from it. Before a script is RUN, it is necessary for it to be made executable.



Discussion

No Comment Found

Related InterviewSolutions