查看linux系统版本可以使用什么命令

1、lsb_release -a,即可列出所有版本信息

[root@S-CentOS ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final

这个命令适用于所有的Linux发行版,包括RedHat、SUSE、Debian…等发行版。

2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux

 [root@S-CentOS home]# cat /etc/redhat-release
CentOS release 6.5 (Final)

3、cat /etc/issue,此命令也适用于所有的Linux发行版

[root@S-CentOS home]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

推荐教程:linux教程

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...