inspec/docs/resources/filesystem.md.erb
eramoto a687479e6c Fix typo in some docs (#2841)
Also includes fixes such as PostgreSQL, TCPMUX, and etc.

Signed-off-by: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
2018-03-20 08:43:30 -04:00

41 lines
843 B
Text

---
title: About the filesystem Resource
platform: linux
---
# filesystem
Use the `filesystem` InSpec resource to audit filesystem disk space usage.
<br>
## 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 megabytes (MB).
<br>
## Resource Property Examples
The following examples show how to use this InSpec audit resource.
### Test if the root partition is greater thank 32000 MB
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/).