# Info regarding inspec resources and matchers

**URL:** <https://discourse.chef.io/t/info-regarding-inspec-resources-and-matchers/13154>\
**Category:** Chef InSpec\
**Created:** [June 5, 2018, 4:48pm UTC](https://discourse.chef.io/t/info-regarding-inspec-resources-and-matchers/13154 "2018-06-05T16:48:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhir](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@prabhir](https://discourse.chef.io/u/prabhir)\
**Post date:** [June 5, 2018, 4:48pm UTC](https://discourse.chef.io/t/info-regarding-inspec-resources-and-matchers/13154/1 "2018-06-05T16:48:43Z")

</div>

Hi All,

I am new to inspec and while checking examples, i found that I could only see few global matchers but in example there are many used.

Where can i see other matchers for e.g.

describe directory(path) do  
its(‘mode’) { should cmp ‘0755’ }  
end

In above example what is mode and where can i see the complete list which i can use for directory?

Thanks and regards,  
Prabhir

---

<div class="post-metadata">

**Author:** ![kwalters](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kwalters/32/2278_2.png) [@kwalters](https://discourse.chef.io/u/kwalters)\
**Post date:** [June 5, 2018, 6:54pm UTC](https://discourse.chef.io/t/info-regarding-inspec-resources-and-matchers/13154/2 "2018-06-05T18:54:17Z")

</div>

The properties for inspec resources are well documented on the website. In the case of the directory resource, this is actually equivalent to the file resource. So all of the properties for file apply to directory. You can see them here: [https://www.inspec.io/docs/reference/resources/file/](https://www.inspec.io/docs/reference/resources/file/)

Mode refers to the unix permission bits for the directory or file which determine if the file is readable ®, writeable (W), or executable (X) for the owning user, owner group and everyone else. In your example, 0755 means that the directory is fully RWX (hence the 7) for the owning user, Readable and Executable (hence the 5) by the owning group, and Readable and Executable (indicated by the last 5) for any other user. You can learn more about how these numbers work and converting them from permission bits to octal numbers from [lots](https://en.wikipedia.org/wiki/File_system_permissions) of [sites](https://en.wikipedia.org/wiki/Chmod) on the [internet](http://mason.gmu.edu/~montecin/UNIXpermiss.htm).

---

<div class="post-metadata">

**Author:** ![prabhir](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@prabhir](https://discourse.chef.io/u/prabhir)\
**Post date:** [June 6, 2018, 7:14am UTC](https://discourse.chef.io/t/info-regarding-inspec-resources-and-matchers/13154/3 "2018-06-06T07:14:21Z")

</div>

Thank you kwalters. Thanks for the pointer.  
So the document available at [https://www.inspec.io/docs/reference/resources](https://www.inspec.io/docs/reference/resources) has all the information right?  
Anything else I have to refer to get more information on this?

Thanks and Regards,  
Prabhir

---

<div class="post-metadata">

**Author:** ![cwolfe](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@cwolfe](https://discourse.chef.io/u/cwolfe)\
**Post date:** [June 6, 2018, 3:08pm UTC](https://discourse.chef.io/t/info-regarding-inspec-resources-and-matchers/13154/4 "2018-06-06T15:08:55Z")

</div>

Yes, the Resources page should be your main reference.

I also recommend the Glossary, which should help you understand the terminology a bit better - [https://www.inspec.io/docs/reference/glossary/](https://www.inspec.io/docs/reference/glossary/)
