FahamLah

Commands

chmod

chmod <mode> <file>

Risk: Safe

What it does

Changes who may read, write or run a file.

When to use it

When a script says Permission denied.

Example

$ chmod +x cook.sh

Let cook.sh run as a program.

$ ls -l

See the permissions: r read, w write, x run.