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