1. 程式人生 > >檢視solaris系統的版本和位數

檢視solaris系統的版本和位數

一、檢視作業系統;有下面三種方法: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 檢視補丁情況