Linux查看系統(tǒng)版本的方法匯總
一、查看Linux系統(tǒng)發(fā)行版本
命令1:lsb_release -a
該命令適用于所有Linux系統(tǒng),會(huì)顯示出完整的版本信息,包括Linux系統(tǒng)的名稱,如Debian、Ubuntu、CentOS等,和對(duì)應(yīng)的版本號(hào),以及該版本的代號(hào),例如在Debian 8中將會(huì)顯示代號(hào)jessie。
$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.0 (jessie) Release: 8.0 Codename: jessie
命令2: cat /etc/issue
該命令適用于所有Linux系統(tǒng),顯示的版本信息較為簡(jiǎn)略,只有系統(tǒng)名稱和對(duì)應(yīng)版本號(hào)。
$ cat /etc/issue Debian GNU/Linux 8 \n \1
命令3: cat /etc/redhat-release
該命令僅適用于Redhat系列的Linux系統(tǒng),顯示的版本信息也較為簡(jiǎn)略。
$ cat /etc/redhat-release CentOS release 6.0 (Final)
二、查看Linux內(nèi)核版本
命令1: uname -a
$ uname -a Linux CodeBelief 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8ul (2015-04-24) x86_64 GNU/Linux
命令2: cat /proc/version
$ cat /proc/version Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt9-3~deb8ul (2.15-04-24)
以上就是用于查詢Linux系統(tǒng)版本的常見命令,希望對(duì)大家有所幫助。
相關(guān)文章
Centos8使用Squid配置代理服務(wù)器的詳細(xì)過程
這篇文章主要介紹了Centos8使用Squid配置簡(jiǎn)單的代理服務(wù)器,安裝過程中需要?jiǎng)?chuàng)建新賬戶并將其設(shè)置為管理賬戶,設(shè)置網(wǎng)絡(luò)連接,簡(jiǎn)單的配置過程跟隨小編一起看看吧2022-01-01
Ubuntu apt-get指令autoclean,clean,autoremove的區(qū)別
這篇文章主要介紹了Ubuntu apt-get指令autoclean,clean,autoremove的區(qū)別的相關(guān)資料,需要的朋友可以參考下2017-01-01
linux下vsftpd的安裝及配置使用詳細(xì)步驟(推薦)
這篇文章主要介紹了linux下vsftpd的安裝及配置使用詳細(xì)步驟 ,需要的朋友可以參考下2018-01-01

