如何檢視linux作業系統版本?
1. 檢視核心版本命令:
$ cat /proc/version2. 檢視linux版本:linux version 2.6.32-358.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (red hat 4.4.7-3) (gcc) ) #1 smp fri feb 22 00:31:26 utc 2013
$ uname -a
linux 192.168.1.10 2.6.32-358.el6.x86_64 #1 smp fri feb 22 00:31:26 utc 2013 x86_64 x86_64 x86_64 gnu/linux
$ uname -r
2.6.32-358.el6.x86_64
1) 執行 lsb_release -a ,即可列出所有版本資訊,例如:
$ lsb_release -a注:這個命令適用於所有的linux,包括redhat、suse、debian等發行版。lsb version: core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
distributor id: suse linux
description: suse linux enterprise server 9 (i586)
release: 9
codename: n/a
2) 執行cat /etc/issue,例如如下:
$ cat /etc/issue3) 執行cat /etc/redhat-release ,例如如下:welcome to suse linux enterprise server 9 (i586) - kernel \r (\l).
$ cat /etc/*release*centos release 6.4 (final)
centos release 6.4 (final)
centos release 6.4 (final)
cpe:/o:centos:linux:6:ga
如何檢視Linux作業系統版本?
如何檢視linux作業系統版本?1.檢視核心版本命令 chen mylinuxserver cat proc version linux version 2.6.5 7.244 smp geeko buildhost gcc version 3.3.3 suse linux 1 smp mon de...
如何檢視Linux作業系統版本?
1.檢視核心版本命令 chen mylinuxserver cat proc version linux version 2.6.5 7.244 smp geeko buildhost gcc version 3.3.3 suse linux 1 smp mon dec 12 18 32 25 ut...
如何檢視Linux作業系統版本?
如何檢視linux作業系統版本?1.檢視核心版本命令 chen mylinuxserver cat proc version linux version 2.6.5 7.244 smp geeko buildhost gcc version 3.3.3 suse linux 1 smp mon de...