一、查看操作系统;有下面三种方法:showrev、uname和查看/etc/release。
(1)命令showrev
root @qeweb:/#showrev
Hostname: qeweb
Hostid: 84969f9c
Release: 5.9
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.9 Generic 122300-12 Jul 2007
(2)命令uname
root @qeweb:/#uname -a
SunOS qeweb 5.9 Generic_122300-12 sun4u sparc SUNW,Sun-Fire-V240
(3)查看/etc/release
root @qeweb:/#cat /etc/release
Solaris 9 9/05 HW s9s_u9wos_06b SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 25 September 2006
二、查看操作系统位数
(1)使用isainfo -v命令
如果是运行在32位模式下, 则有如下输出:
32-bit sparc applications
如果是运行在64位模式下, 则有如下输出:
64-bit sparcv9 applications
32-bit sparc applications
root @qeweb:/#isainfo -v
64-bit sparcv9 applications
32-bit sparc applications
三、showrev -p 查看补丁情况