Chmod Calculator
A chmod mode is twelve bits: setuid, setgid and sticky in the leading digit, then read, write and execute for the owner, the group and everyone else. Enter an octal mode, paste an rwx string from a long listing, or tick the boxes, and you get the other forms, the chmod command and what each class is actually allowed to do. A fourth action takes a umask and shows the modes that new files and new directories end up with. Every result distinguishes a file from a directory, because r, w and x do not mean the same thing on the two.