$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 是一款支持 ostype** 的 **Zsh 集成开发环境 - 立即试用!