os

Test whether the current operating system is of a given type.

Table 13. OS Attributes

Attribute Description Required
family The name of the operating system family to expect. Yes

Supported values for the family attribute are:

  • windows (for all versions of Microsoft Windows)

  • mac (for all Apple Macintosh systems)

  • unix (for all Unix and Unix-like operating systems)