Ubuntu Linux & Oracle Linux & Linux Mint:
cat /etc/issue
Redhat Linux:
cat /etc/redhat-release
Solaris:
总体操作系统信息查询l: cat /etc/release
32位/64位查询: isainfo -b 或 isainfo -k/-v/-kv 详细参见isainfo
CPU架构: uname -m(不是非常精确)
FreeBSD:
uname -a
Mac OSX & Darwin:
sw_vers 或者 cat /System/Library/CoreServices/SystemVersion.plist
阅读(1088) | 评论(0) | 转发(0) |