查看Linux系统是64位还是32位技巧
2012-05-19 03:27:45   来源:熊熊看世界   评论:0 点击:

如何查看Linux系统是64位还是32位?这里提供2个简易的技巧:1、getconf LONG_BIT or getconf WORD_BIT例如:[root@host]# getconf LO...

如何查看Linux系统是64位还是32位?这里提供2个简易的技巧:

1、getconf LONG_BIT or getconf WORD_BIT

例如:

[root@host]# getconf LONG_BIT

32

[root@host]# getconf WORD_BIT

32

2、file /bin/ls

例如:

[root@host]# file /bin/ls

/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
 

另外,还可以查看linux的版本详细信息:使用

lsb_release -a

[root@host]# lsb_release -a

LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch

Distributor ID: RedHatEnterpriseServer

Description:    Red Hat Enterprise Linux Server release 5.5 (Tikanga)

Release:        5.5

Codename:       Tikanga

相关热词搜索:Linux 系统

上一篇:第一页
下一篇:Linux系统中为普通用户创建特殊权限的终端(SCREEN)

分享到: 收藏
评论排行