Script basics · Question 9 of 12

What happens with bash script.sh if script.sh has no execute permission?

1 answer is correct. Medium Created with AI

Show answer

Answer

  • D The script runs anyway because bash only needs to read the file

Explanation

Here bash is the program being started, and script.sh is just a file it reads. The execute permission is only needed for a direct call like ./script.sh.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications