- 链接地址:https://blog.csdn.net/xrdks/article/details/7759313
- 链接标题:bash shell 使用 uname 命令获取系统名称_shell 获取darwin linux-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2742
#获取系统名称function xrsh_get_osname(){ uname -s} #转换/统一系统名称#参数:1系统名称#例子:# 获取并转换# xrsh_cvt_osname `xrsh_get_osname`# 如在 linux 下系统名称通常为 Linux,转换后为 linux#注解:不在函数内处理的系统名称_shell 获取darwin linux
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除