命令:1、“l(fā)sb_release -a”,該命令可查看所有l(wèi)inux系統(tǒng)版本;2、“cat /etc/redhat-release”,該命令只適合Redhat系的linux;3、“cat /etc/issue”,此命令也適用于所有的版本。
本教程操作環(huán)境:linux7.3系統(tǒng)、Dell G3電腦。
查詢linux版本信息的命令是什么
1、lsb_release -a,即可列出所有版本信息:
這個(gè)命令適用于所有的Linux發(fā)行版,包括RedHat、SUSE、Debian…等發(fā)行版。
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發(fā)行版。