$OSTYPE
–
Describes The Operating System
$OSTYPE describes the operating system Bash is running on.
Links
Examples
- Print the current OS
- Output:
1echo $OSTYPE1linux-gnu
BashSupport Pro is a Bash IDE with support for $OSTYPE – try it now!