Topic summary

Unix file type

Extracted from the Wikipedia article Unix file types.

Numeric

When written as octal, a mode value shows the Unix file type separately – as the first two digits. For example, mode of octal 100644 indicates a regular file since the Unix file type bit-field is octal 10. This format is used in git, tar, ar, and other contexts.