Linux查看系統版本的方法大全
Linux查看系統版本的方法大全,一起來看看吧
一、查看Linux系統發行版本
命令1:lsb_release -a
該命令適用于所有Linux系統,會顯示出完整的版本信息,包括Linux系統的名稱,如Debian、Ubuntu、CentOS等,和對應的版本號,以及該版本的代號,例如在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系統,顯示的版本信息較為簡略,只有系統名稱和對應版本號。
$ cat /etc/issue
Debian GNU/Linux 8 n 1
命令3: cat /etc/redhat-release
該命令僅適用于Redhat系列的Linux系統,顯示的版本信息也較為簡略。
$ cat /etc/redhat-release
CentOS release 6.0 (Final)
二、查看Linux內核版本
命令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)
相關文章:
1. Linux5.19內核大提升! Ubuntu 22.04 LTS 現可升級至 Linux Kernel 5.192. 詳解Linux系統中虛擬設備文件的各種實用用法3. Linux 通過 autojump 命令減少 cd 命令的使用的實現方法4. Win7/8/10 Mac中hosts文件位置介紹 Mac Linux中hosts文件修改方法5. Linux如何在Vim中更改顏色和主題6. Win7和Linux下的java開發環境配置7. linux 壓縮文件的命令總結8. OpenSSH實現Windows和Linux文件安全傳輸9. 新手學堂:Linux和Windows系統區別介紹10. 怎樣讓你的Linux使用起來更像Windows
