File on the system
file MQL resource for querying Operating System infrastructure with cnquery and cnspec.
Operating System
File on the system
Use MQL in cnspec shell or policy:
fileMin version: 5.0.0Defaults:
path size permissions.stringRelationships
4 resources · 4 relationships·Click to select, expand fields to see properties.
Fields (11)
| Field | Type | Description |
|---|---|---|
basename | string | Filename without path prefix of this file |
content | string | Contents of this file |
contextprivate | file.context | File context is a range of lines/columns in a file |
dirname | string | Path to the folder containing this file |
empty | int | Whether the path is empty |
exists | int | Whether this file exists on the system |
group | group | Ownership information about the group |
pathrequired | string | Location of the file on the system |
permissions | file.permissions | Permissions for this file |
size | int | Size of this file on disk |
user | user | Ownership information about the user |