1. 程式人生 > >Linux查看系統版本命令 linux學習教程

Linux查看系統版本命令 linux學習教程

mil 命令 linux 內核版本 linux學習 font strong style cat

一、查看Linux內核版本命令

方法一:cat /proc/version

用法:[root@S-CentOS home]# cat /proc/version

方法二:uname -a

用法:[root@S-CentOS home]# uname -a

二、查看Linux系統版本的命令

方法一:lsb_release -a

用法:[root@S-CentOS ~]# lsb_release -a

註意:使用該命令即可列出所有版本信息,這個命令適用於所有的Linux發行版,包括RedHatSUSEDebian等發行版。

方法二:cat /etc/redhat-release

用法:[root@S-CentOS home]# cat /etc/redhat-release

註意:該方法只適合Redhat系的Linux

方法三:cat /etc/issue

用法:[root@S-CentOS home]# cat /etc/issue

註意:該命令也適用於所有的Linux發行版


Linux查看系統版本命令 linux學習教程