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