$OSTYPE  –  Describes The Operating System

$OSTYPE describes the operating system Bash is running on.

Examples

Print the current OS
1
echo $OSTYPE
Output:
1
linux-gnu
BashSupport Pro is a Bash IDE with support for $OSTYPEtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal