一、查看Linux內(nèi)核版本命令(兩種方法):
二、查看Linux系統(tǒng)版本的命令(3種方法):
1、lsb_release -a
即可列出所有版本信息:這個命令適用于所有的Linux發(fā)行版,包括Redhat、SuSE、Debian…等發(fā)行版。2、cat /etc/redhat-release
這種方法只適合Redhat系的Linux:
3、cat /etc/issue
此命令也適用于所有的Linux發(fā)行版。
參考:http://www.ha97.com/2987.html