Java 判断当前系统为Window或者Linux
public static boolean isOSLinux() { Properties prop = System.getProperties(); String os = prop.getProperty("os.name"); if (os != null && os.toLowerCase().indexOf("linux") > -1) { return true; } else { return false; } } --------------------- 本文来自 z278718149 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/z278718149/article/details/50735910?utm_source=copy
- 上一篇 »Linux命令
- 下一篇 »linux文件系统目录解析