查看linux系统版本命令
查看linux系统版本
操作方法
- 01
方法一: 使用uname -a 如: linux-uor0:/opt # uname -a Linux linux-uor0 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux linux-uor0:/opt # uname -r 2.6.32.12-0.7-default linux-uor0:/opt #
- 02
方法二: 使用cat /etc/issue 如: linux-uor0:/opt # cat /etc/issue Welcome to SUSE Linux Enterprise Server 11 SP1 (x86_64) - Kernel \r (\l). linux-uor0:/opt #
- 03
方法三: 使用lsb_release -a 如: linux-uor0:/opt # lsb_release -a LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch Distributor ID: SUSE LINUX Description: SUSE Linux Enterprise Server 11 (x86_64) Release: 11 Codename: n/a linux-uor0:/opt #
- 04
方法四: 使用 cat /proc/version 如: linux-uor0:/opt # cat /proc/version Linux version 2.6.32.12-0.7-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2010-05-20 11:14:20 +0200 linux-uor0:/opt #