File
0644 · rw-r--r--
Actually removed: 0022 · ----w--w-
Show bit calculation
- Requested bits
- 0666 · 110 110 110
- Mask — bits to clear
- 0022 · 000 010 010
- Allowed bits (~mask & 0777)
- 0755 · 111 101 101
- Resulting bits
- 0644 · 110 100 100
A result bit is set only if requested and not masked.
0666 & (~0022 & 0777) = 0644