Sha256: 8f5c3414ba00c1cce5d862a2e9d4d3ae310617b42f5b8799c61c8c186b01b799

Contents?: true

Size: 841 Bytes

Versions: 3

Compression:

Stored size: 841 Bytes

Contents

---
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 partion:

    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/).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inspec-2.1.0 docs/resources/filesystem.md.erb
inspec-2.0.45 docs/resources/filesystem.md.erb
inspec-2.0.16 docs/resources/filesystem.md.erb