read, write and execute permissions

The three basic permissions in a file mode: read (r, 4) to view, write (w, 2) to change and execute (x, 1) to run.

In more detail

On a regular file, execute lets the kernel run it as a program. On a directory the bits mean something different: read lists names, write adds or removes entries, and execute allows search, meaning you may pass through it to reach what is inside. The octal values add up per class, so rwx is 7 and r-x is 5.

Related terms

Taught in

References