Mondoo Docs

Find files on the system

files.find MQL resource for querying Operating System infrastructure with cnquery and cnspec.

Operating System

Find files on the system

Use MQL in cnspec shell or policy:

files.find
Min version: 5.15.0

Relationships

Mini Map
Operating System
2 resources · 1 relationshipsClick to select, expand fields to see properties.

Fields (8)

FieldTypeDescription
depthrequired
intThe depth of the file search.
fromrequired
stringSets the starting point for the search operation
list
[]file-
namerequired
stringSearch name
permissionsrequired
intWhat permissions the file matches
regexrequired
stringA regular expression for the file search
typerequired
stringWhat types of files to list (directories, files, devices, etc)
xdevrequired
intWhether other devices to search