$OSTYPE
–
Operating System
$OSTYPE contains the operating system defined at compile time of the shell.
Links
Examples
- Print the current OS
- Output:
1echo $OSTYPE1linux-gnu
BashSupport Pro is a Zsh IDE with support for $OSTYPE – try it now!