Permission Table for Linux (quick reference)
I am sure you have wondered what is the right permission for your file and tried to understand how it works, why there are numbers and letter and what all that mess means. Well here is a table that puts it in a very simple way, I am assuming you already know binary system, Linux and have a mind sharp enough to understand how it works. It is definitely more clear than other information I have found on the Internet.
r | w | x | Binary | Decimal | rwx | Meaning |
---|---|---|---|---|---|---|
1 | 1 | 1 | 111 | 7 | rwx | Read, Write, Execute |
1 | 1 | 0 | 110 | 6 | rw- | Read, Write |
1 | 0 | 1 | 101 | 5 | r-x | Read, Execute |
1 | 0 | 0 | 100 | 4 | r-- | Read |
0 | 1 | 1 | 011 | 3 | -wx | Write, Execute |
0 | 1 | 0 | 010 | 2 | -w- | Write |
0 | 0 | 1 | 001 | 1 | --x | Execute |
0 | 0 | 0 | 000 | 0 | --- | Nothing |