< Back

Test-IsUnix

Sat Jan 18, 2020 7:20 pm

NAME Test-IsUnix



SYNOPSIS

Tests if the current OS is Unix.





SYNTAX

Test-IsUnix [<CommonParameters>]





DESCRIPTION

Tests if the current OS is Unix.





PARAMETERS

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>if (Test-IsUnix) { /* logic */ }















RELATED LINKS