The syntax for permissions is:
chmod UGO FILE'UGO' representing User, Group, and Other respectively.
The following codes add up to create the permissions.
| What | Code |
|---|---|
| Read | 4 |
| Write | 2 |
| Execute | 1 |
For example, if I wanted to make 'myresume.docx' writable by me and my group, and readable by everyone else, I would preform the following command.
chmod 664 myresume.docxTo make a file executable run:
chmod +x FILE