$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 是一个 支持 $OSTYPE 的 Bash 集成开发工具 – 马上试用!