特牛网址导航

bash shell 使用 uname 命令获取系统名称_shell 获取darwin linux-CSDN博客

网友收藏
#获取系统名称function xrsh_get_osname(){ uname -s} #转换/统一系统名称#参数:1系统名称#例子:# 获取并转换# xrsh_cvt_osname `xrsh_get_osname`# 如在 linux 下系统名称通常为 Linux,转换后为 linux#注解:不在函数内处理的系统名称_shell 获取darwin linux