千家信息网

linux查看系统版本信息的命令是什么

发表于:2025-02-08 作者:千家信息网编辑
千家信息网最后更新 2025年02月08日,1、lsb_release -a,即可列出所有版本信息[root@S-CentOS ~]# lsb_release -aLSB Version: :base-4.0-amd64:base-4.0-no
千家信息网最后更新 2025年02月08日linux查看系统版本信息的命令是什么

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

[root@S-CentOS ~]# lsb_release -aLSB 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-noarchDistributor ID: CentOSDescription: CentOS release 6.5 (Final)Release: 6.5Codename: Final

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

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

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

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

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

以上就是查看linux系统版本可以使用什么命令的详细内容,更多请关注其它相关文章!

0