execute permission

The permission that lets a file be run as a program, or lets you enter a directory.

In more detail

A new script is not executable, so ./script.sh fails with Permission denied until you run chmod +x script.sh. bash script.sh still works without it, because then bash only reads the file. On a directory, execute means you may enter it and reach the files inside by name.

Example

chmod +x script.sh && ./script.sh

Related terms

Taught in

References