MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
To run the script, we should make it executable first by using ____
A
chmod +x
B
chmod +r
C
chmod +w
D
chmod +rwx
Explanation: 

Detailed explanation-1: -Explanation: 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.

Detailed explanation-2: -Use chmod to make a script an executable program.

Detailed explanation-3: -Shell scripts must be executable files in order to run. You can use the chmod command to indicate that the text file is executable (that is, its contents can be run as a shell script).

There is 1 question to complete.