----- 最近更新【2022-02-16】-----
本文目錄結(jié)構(gòu)預(yù)覽:
- 一纸俭、查看內(nèi)核版本與發(fā)行版本
1场仲、查看內(nèi)核版本
2法竞、查看發(fā)行版本 - 二、Linux 內(nèi)核
1参歹、內(nèi)核版本命名規(guī)則
2仰楚、積極支持版本 - 三、常見的Linux發(fā)行版
- 四犬庇、參考
一僧界、查看內(nèi)核版本與發(fā)行版本
1、查看內(nèi)核版本
1)查看/proc/version
文件
[nosee@noseecomputer ~]$ cat /proc/version
Linux version 5.4.0-97-generic (buildd@lcy02-amd64-032) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #110-Ubuntu SMP Thu Jan 13 18:22:13 UTC 2022
[nosee@noseecomputer ~]$ cat /proc/version_signature
Ubuntu 5.4.0-97.110-generic 5.4.162
注:有些系統(tǒng)沒有/proc/version_signature
文件臭挽,但大部分都會有/proc/version
文件
2)使用命令uname
[nosee@noseecomputer ~]$ uname -r
5.4.0-97-generic
[nosee@noseecomputer ~]$ uname -a
Linux noseecomputer 5.4.0-97-generic #110-Ubuntu SMP Thu Jan 13 18:22:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3)使用命令hostnamectl
[nosee@noseecomputer ~]$ hostnamectl
Static hostname: noseecomputer
Icon name: computer-vm
Chassis: vm
Machine ID: 29f35c35fb224975bf84206688ec222d
Boot ID: 95b18dada8a14163afd7f9336995c28e
Virtualization: vmware
Operating System: Ubuntu 20.04.2 LTS
Kernel: Linux 5.4.0-97-generic
Architecture: x86-64
2捂襟、查看發(fā)行版本
1)查看文件 /etc/issue
或/etc/redhat-release
Ubuntu:
[nosee@noseecomputer ~]$ cat /etc/issue
Ubuntu 20.04.2 LTS \n \l
Debian:
[nosee@instance-4 ~]$ cat /etc/issue
Debian GNU/Linux 10 \n \l
CentOS:(注:RedHat 系列發(fā)行版本才會有/etc/redhat-release
這個文件)。
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
2)使用命令lsb_release
Ubuntu:
[nosee@noseecomputer ~]$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
Debian:
[nosee@instance-4 ~]$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
CentOS:
[root@localhost ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core
3)使用命令rpm
欢峰,針對 RedHat 系列
CentOS:
[root@localhost ~]# rpm -q centos-release
centos-release-7-9.2009.1.el7.centos.x86_64
RedHat 則用rpm -q redhat-release
二葬荷、Linux 內(nèi)核
1、內(nèi)核版本命名規(guī)則
主版本.次版本.釋出版本-修定版本
如:5.4.0-97.110
2纽帖、積極支持版本
版本 | 維護(hù)者 | 發(fā)行時間 | 停止維護(hù) |
---|---|---|---|
5.15 | Greg Kroah-Hartman & Sasha Levin | 2021-10-31 | 2023-10 |
5.10 | Greg Kroah-Hartman & Sasha Levin | 2020-12-13 | 2026-12 |
5.4 | Greg Kroah-Hartman & Sasha Levin | 2019-11-24 | 2025-12 |
4.19 | Greg Kroah-Hartman & Sasha Levin | 2018-10-22 | 2024-12 |
4.14 | Greg Kroah-Hartman & Sasha Levin | 2017-11-12 | 2024-1 |
4.9 | Greg Kroah-Hartman & Sasha Levin | 2016-12-11 | 2023-1 |
三宠漩、常見的Linux發(fā)行版
名稱 | 網(wǎng)址 | 軟件包管理器 | 特 點(diǎn) |
---|---|---|---|
Debain | www.debian.org | apt | 開放的開發(fā)模式,且易于進(jìn)行軟件包升級 |
Ubuntu | www.ubuntu.com | apt | 優(yōu)秀已用的桌面環(huán)境懊直,基于 Debian 構(gòu)建 |
RedHat | www.redhat.com | yum(rpm) | 適用于服務(wù)器的版本是Red Hat Enterprise Linux扒吁,而由于這是個收費(fèi)的操作系統(tǒng),免費(fèi)的版本是CentOS室囊。 |
Fedora | https://getfedora.org | up2date(rpm)雕崩,yum(rpm) | 也是跟紅帽有關(guān)系的開源Linux操作系統(tǒng),由社群開發(fā)維護(hù) |
CentOS | www.centos.org | yum(rpm) | 社區(qū)企業(yè)操作系統(tǒng)融撞,完全免費(fèi)盼铁,穩(wěn)定性極好,可以看作RedHat的免費(fèi)開源再編譯版本懦铺。 |
Gentoo | www.gentoo.org | portage | 官宣是一種高可配置的系統(tǒng)捉貌,使用一種叫portage的技術(shù)。高度的可定制性冬念,使用手冊完整 |
Knoppix | www.knoppix.com | apt | 可以直接在 CD 上運(yùn)行趁窃,具有優(yōu)秀的硬件檢測和適配能力,可作為系統(tǒng)的急救盤使用 |
Mandriva (過去叫:Mandrake) |
www.mandriva.com | rpm | 操作界面友好急前,使用圖形配置工具醒陆,有龐大的社區(qū)進(jìn)行技術(shù)支持,支持 NTFS 分區(qū)的大小變更 |
SuSE | www.suse.com | ||
OpenSUSE | www.opensuse.org | YaST(rpm)裆针,第三方 apt (rpm)軟件庫(repository) | 國最著名的Linux發(fā)行版本刨摩,專業(yè)寺晌,易用的YaST軟件包管理系統(tǒng) |
deepin | www.deepin.org | 產(chǎn)Linux操作系統(tǒng),致力于最好用的桌面系統(tǒng)澡刹,在國內(nèi)Linux發(fā)行版匱乏的情況下扛起了大旗呻征,勇氣可嘉,產(chǎn)品也得到了不錯的反響罢浇。 | |
Android | developer.android.com | 大家很熟悉了陆赋,它的內(nèi)核就是Linux,也算是一種Linux發(fā)行版嚷闭。 |
四攒岛、參考
- 書籍
《Unix & Linux 大學(xué)教程》
《鳥哥的Linux私房菜》:https://linux.vbird.org/linux_basic/centos7/0110whatislinux.php - 網(wǎng)站
GNU操作系統(tǒng)與自由軟件運(yùn)動:www.gnu.org
The Linux Kernel Archives:www.kernel.org
Active kernel releases:www.kernel.org/releases.html
Linux開發(fā)標(biāo)準(zhǔn),Linux Standard Base (LSB):https://wiki.linuxfoundation.org/lsb/start
文件系統(tǒng)層次化標(biāo)準(zhǔn)(FHS):https://refspecs.linuxfoundation.org/fhs.shtml
DistroWatch:https://distrowatch.com/