The three triplets
A Unix file mode has nine permission bits in three groups: owner, group, other. In each group, read is 4, write is 2 and execute is 1. Add the ones you want. Read and write is 6, read and execute is 5, everything is 7, nothing is 0.
- 644 (rw-r--r--): owner edits, everyone reads. Typical for text files.
- 755 (rwxr-xr-x): owner edits, everyone reads and runs. Typical for directories and programs.
- 600 (rw-------): private to the owner. SSH private keys are commonly kept at this mode.
- 1777 (rwxrwxrwt): world-writable with the sticky bit, the usual mode for /tmp, where only a file's owner can delete it.
The tool prints the command as chmod followed by the octal value and the word path; replace path with your file. Directories need the execute bit to be entered, which is why they usually get 755 rather than 644.