Sha256: cc963de8b9dc3b5e8e285c9b008ad8bebea303e32f2ba33a265802d037fc18d8

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 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 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/).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inspec-2.1.21 docs/resources/filesystem.md.erb
inspec-2.1.10 docs/resources/filesystem.md.erb