Linux查看系統(tǒng)版本的方法大全
Linux查看系統(tǒng)版本的方法大全,一起來看看吧

一、查看Linux系統(tǒng)發(fā)行版本
命令1:lsb_release -a
該命令適用于所有Linux系統(tǒng),會顯示出完整的版本信息,包括Linux系統(tǒng)的名稱,如Debian、Ubuntu、CentOS等,和對應(yīng)的版本號,以及該版本的代號,例如在Debian 8中將會顯示代號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),顯示的版本信息較為簡略,只有系統(tǒng)名稱和對應(yīng)版本號。
$ cat /etc/issue
Debian GNU/Linux 8 n 1
命令3: cat /etc/redhat-release
該命令僅適用于Redhat系列的Linux系統(tǒng),顯示的版本信息也較為簡略。
$ 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)
相關(guān)文章:
1. 在vmware虛擬機中安裝Linux系統(tǒng)CentOS7詳細教程2. Unix是什么?Unix和Linux有什么區(qū)別?3. CentOS 6.6系統(tǒng)怎么安裝?CentOS Linux系統(tǒng)安裝配置圖解教程4. Linux服務(wù)器如何關(guān)閉上面的網(wǎng)站5. Linux系統(tǒng)服務(wù)器防病毒實戰(zhàn)(圖)6. Linux X-Window配置指南7. 細數(shù)Linux系統(tǒng)五大點優(yōu)于Windows Vista8. VMware中使用Windows2003和Linux混合運行RIP路由協(xié)議(一)9. Mac虛擬機安裝Linux Ubuntu教程10. linux less命令實例詳解

網(wǎng)公網(wǎng)安備