Datatypes › Software development

Unix file mode (-rw-r--r--, 0644)

ID unix_file_mode

DatatypeNot PIIcategoricalDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

File type and permission bits of a file in a Unix file system, in the symbolic form of ls -l: ten characters, the type (- for a file, d for a directory, l for a symbolic link) and the read, write and execute rights of the owner, the group and others (-rw-r--r--, drwxr-xr-x), with s or t for the setuid, setgid and sticky bits. The same bits are written in octal for chmod (0644, 755). The tree views of repository browsers such as cgit and gitweb list it in a Mode column.

Categories
Software development
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
90/100 · missing: mapping (Wikidata, Schema.org, ...)
Metacrafter rules
2 rules (1 by field name, 1 by value)
Supported by tools
metacrafter

Regular expression

^[-dlcbps][-r][-w][-xsS][-r][-w][-xsS][-r][-w][-xtT]$

Python re syntax.

Test a value

Examples

ValueDescription
-rw-r--r-- a file readable by all
drwxr-xr-x a directory
lrwxrwxrwx a symbolic link
-rwsr-xr-x setuid
rw-r--r-- invalid without the type

Translations

LanguageNameDescription
RussianПрава доступа к файлу Unix (-rw-r--r--, 0644)

Sources

Use this record