A file
A directory
644
755
600
700
000
Each square is one bit of the permission. Owner, group and others each get their own r, w and x.