Sha256: d47381b3a91323728d838ff464be7b5edfc6ac943ae95fd160e1892cc34fbef3
Contents?: true
Size: 1.01 KB
Versions: 20
Compression:
Stored size: 1.01 KB
Contents
--- title: About the filesystem Resource platform: linux --- # filesystem Use the `filesystem` InSpec resource to audit filesystem disk space usage. <br> ## Availability ### Installation This resource is distributed along with InSpec itself. You can use it automatically. ### Version This resource first became available in v1.51.0 of InSpec. ## Syntax A `filesystem` resource block declares tests for disk space in a partition: describe filesystem('/') do its('size') { should be >= 32000 } end where * `filesystem('/')` states that the resource will look at the root (/) partition. * `size` is measured in kilobytes (KB). <br> ## Resource Property Examples The following examples show how to use this InSpec audit resource. ### Test if the root partition is greater than 32000 KB describe filesystem('/') do its('size') { should be >= 32000 } end <br> ## Matchers For a full list of available matchers, please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
Version data entries
20 entries across 20 versions & 2 rubygems