1.

Which command is used to make a script file ‘run_me.sh’ executable?(a) chmod +e run_me.sh(b) chmod +a run_me.sh(c) chmod +y run_me.sh(d) chmod +x run_me.shThe question was posed to me during an interview for a job.This intriguing question comes from Relocating Data Directory Contents in section MySQL Data Directory of MySQL

Answer»

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

Explanation: The command NAME ‘chmod’ stands for ‘change mode’. It is USED to define the way a FILE can be ACCESSED. To MAKE the script file ‘run_me.sh’ executable, the chmod command is used.



Discussion

No Comment Found

Related InterviewSolutions