CentOS檢視核心版本,位數,版本號

2021-09-06 15:02:28 字數 1826 閱讀 9231

1)[root@localhost ~]# cat /proc/version

linux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (red hat 4.1.2-48)) #1 smp fri apr 2 14:58:14 edt 2010

2)[root@localhost ~]# uname -a

linux localhost.localdomain 2.6.18-194.el5 #1 smp fri apr 2 14:58:14 edt 2010 x86_64 x86_64 x86_64 gnu/linux

3)[root@localhost ~]# uname -r

2.6.18-194.el5

2. 檢視linux版本:

1) 列出所有版本資訊,

[root@localhost ~]# lsb_release -a

lsb version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

distributor id: centos

description:    centos release 5.5 (final)

release:        5.5

codename:       final

注:這個命令適用於所有的linux,包括redhat、suse、debian等發行版。

2) 執行cat /etc/issue,例如如下:

[root@localhost ~]# cat /etc/issue

centos release 5.5 (final)

kernel r on an m

3) 執行cat /etc/redhat-release ,例如如下:

[root@localhost ~]# cat /etc/redhat-release

centos release 5.5 (final)

檢視系統是64位還是32位:

1、getconf long_bit or getconf word_bit

[root@localhost ~]# getconf long_bit

2、file /bin/ls

[root@localhost ~]# file /bin/ls

/bin/ls: elf 64-bit lsb executable, amd x86-64, version 1 (sysv), for gnu/linux 2.6.9, dynamically linked (uses shared libs), for gnu/linux 2.6.9, stripped

3、lsb_release  -a

[root@localhost ~]# lsb_release -a

lsb version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

distributor id: centos

description:    centos release 5.5 (final)

release:        5.5

codename:       final

在linux中我們要操作任何東西都需要使用命令模式來操作了,所以如果想精通linux伺服器的朋友可以多看看這方面的教程了,像我們這裡查獲系統版本都使用了幾行命令了哦。

CentOS檢視核心版本 系統版本 系統位數

centos檢視核心版本 系統版本 系統位數 檢視linux核心版本 root mongo02 cat proc version linux version 2.6.32 358.el6.x86 64 mockbuild c6b8.bsys.dev.centos.org gcc version 4....

CentOS 7檢視系統版本和機器位數

方法1 用 lsb release a 命令 root bogon lsb release a lsb version core 4.1 amd64 core 4.1 noarch cxx 4.1 amd64 cxx 4.1 noarch desktop 4.1 amd64 desktop 4.1 ...

linux檢視核心版本 系統版本 系統位數

1.檢視核心版本命令 1 root q1test01 cat proc version linux version 2.6.9 22.elsmp bhcompile crowe.devel.redhat.com gcc version 3.4.4 20050721 3.4.4 2 1 smp mon...