ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux查看内核版本、系统版本、系统位数(32or64)

linux查看内核版本、系统版本、系统位数(32or64)

原创 Linux操作系统 作者:chenfengwww 时间:2011-04-14 21:43:55 0 删除 编辑
1. 查看内核版本命令:

[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博客 ” ,链接:https://blog.itpub.net/22036495/viewspace-1048675/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-07-04

  • 博文量
    118
  • 访问量
    460766