Skip to content
Justice Tech School

Permissions

Files have read, write and execute rights for owner, group and others. chmod changes them with symbols (u+x) or numbers (755), and chown changes the owner.

Example
f=$(mktemp)
chmod 600 "$f"
stat -c "%a" "$f"
chmod u+x "$f"
stat -c "%a" "$f"
chmod 755 "$f"
stat -c "%A" "$f"
rm "$f"

Result

600
700
-rwxr-xr-x

Exercise

Read, write, execute for owner only.

chmod  file

Quiz Test

What does 755 mean?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.