[root@q1test01 ~]# uname -a
Linux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
2. 查看linux版本:
登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:
[root@3.5.5Biz-46 ~]# [root@q1test01 ~]# lsb_release -a
LSB Version: :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-
ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Release: 4
Codename: NahantUpdate2
注:这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
3.查看系统是64位还是32位:
getconf LONG_BIT or getconf WORD_BIT
from:http://apps.hi.baidu.com/share/detail/6363027
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22036495/viewspace-1048675/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22036495/viewspace-1048675/