README.md
Lesson 5: Permissions and ownership
This lesson covers permissions and ownership. You'll read a short explanation, try three small exercises and finish with a quiz.
Full lesson: https://glibcode.net/courses/linux-shell/lessons/5
Files
commands.sh: chmod, chown and what rwx means
Tip:
manpages are long;tldr <command>gives you the common cases.
Tip: Quote your variables:
"$file"survives spaces in names,$filedoesn't.
Tip:
history | grep sshfinds that command you typed last week.
Tip:
set -euo pipefailat the top of a script stops it at the first error.
Run it
# type the commands from commands.sh one by one; don't run it as a script
Exercises
See exercises.md. Ask in the forum after you have tried.