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)
unixfilemodebynamefield, common/software.yamlunixfilemodevaluedata, common/software.yaml
- Supported by tools
- metacrafter
Regular expression
^[-dlcbps][-r][-w][-xsS][-r][-w][-xsS][-r][-w][-xtT]$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| -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
| Language | Name | Description |
|---|---|---|
| Russian | Права доступа к файлу Unix (-rw-r--r--, 0644) |
Sources
- wikipedia: File-system permissions (en.wikipedia.org)
- wikipedia: Chmod (en.wikipedia.org)
- doc: pubs.opengroup.org/onlinepubs/9799919799/utilities/ls.html
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/unix_file_mode - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/software/unix_file_mode.yamlon GitHub