$OSTYPE  –  Operating System

$OSTYPE contains the operating system defined at compile time of the shell.

Examples

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