File permissions

Every file has an owner, a group and three permission sets: read, write and execute.

chmod 640 notes.txt
chown alice:staff notes.txt
ls -l notes.txt

The octal digits map to r=4, w=2, x=1.

← All lessons