国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

目錄
Check All Installed Linux Kernels
1. Check Installed Kernels in Alpine Linux
2. List Installed Kernels in Arch Linux
3. Find Installed Linux Kernels in Debian, Ubuntu, Linux Mint, Pop!_OS
4. View installed Kernels in Fedora, CentOS, RHEL, AlmaLinux, Rocky Linux
5. List All Installed Linux Kernels in openSUSE
Bonus tip - View only Current Kernel Details
Conclusion
首頁 系統(tǒng)教程 操作系統(tǒng) 如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

Mar 23, 2025 am 10:43 AM

Linux Kernel is the core component of a GNU/Linux operating system. Developed by Linus Torvalds in 1991, it is a free, open-source, monolithic, modular, and multitasking Unix-like kernel. In Linux, it is possible to install multiple kernels on a single system. Have you ever wondered how many Linux kernels are installed on your Linux box? In this tutorial, we will explore how to check and view all installed Linux kernels, including their versions, from the command line in different Linux operating systems.

Table of Contents

Check All Installed Linux Kernels

The method to identify all installed Linux kernel details in your system may vary depending on the Linux distribution you use. However, one of the easiest and quickest ways to accomplish this is by using the find command.

In most Linux distributions, the installed Linux kernels and their associated files are typically stored in the /boot directory. To view the list of installed kernels, you can simply examine the contents of this directory using the find command:

$ find /boot/vmli*

Sample Output from my Ubuntu 22.04 LTS desktop:

/boot/vmlinuz
/boot/vmlinuz-5.19.0-42-generic
/boot/vmlinuz-5.19.0-45-generic
/boot/vmlinuz.old

You can also use the following command to list all installed Linux Kernels:

$ sudo find /boot -name "vmlinuz*"

The output will display a list of installed kernel files. Each file corresponds to a specific kernel version. Note that the prefix "vmlinuz" is commonly used for kernel filenames.

如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

As you see in the above output, there are two Linux Kernels versions (5.19.0-42 and 5.19.0-45) are installed in my Ubuntu desktop machine.

To view the kernel version associated with each file, you can use the following command:

$ sudo find /boot -name "vmlinuz*" -exec file {} \;

Sample Output:

/boot/vmlinuz: symbolic link to vmlinuz-5.19.0-45-generic
/boot/vmlinuz.old: symbolic link to vmlinuz-5.19.0-42-generic
/boot/vmlinuz-5.19.0-42-generic: Linux kernel x86 boot executable bzImage, version 5.19.0-42-generic (buildd@lcy02-amd64-074) #43~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Apr 21 16:51:08 UTC 2, RO-rootFS, swap_dev 0XB, Normal VGA
/boot/vmlinuz-5.19.0-45-generic: Linux kernel x86 boot executable bzImage, version 5.19.0-45-generic (buildd@lcy02-amd64-117) #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20, RO-rootFS, swap_dev 0XB, Normal VGA

Now we will see distribution-specific methods to find out installed Linux kernel details. First, let us start from Alpine Linux.

1. Check Installed Kernels in Alpine Linux

To obtain a list of all installed kernels along with their versions, you can use the following apk command in Alpine Linux:

$ apk info -vv | grep linux

Sample Output:

libblkid-2.32-r0 - Block device identification library from util-linux
<strong>linux-virt-4.14.167-r0 - Linux vanilla kernel</strong>
syslinux-6.04_pre1-r1 - Boot loader for the Linux operating system

如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

2. List Installed Kernels in Arch Linux

To view all installed in Arch Linux and its variants like EndeavourOS and Manjaro Linux, run the following pacman command:

$ pacman -Q linux

Sample Output:

linux 5.9.14.arch1-1

You can also combine pacman and grep commands to list installed Kernel versions:

$ pacman -Q | grep linux

Sample Output:

archlinux-keyring 20201210-1
<strong>linux 5.9.14.arch1-1</strong>
linux-api-headers 5.8-1
util-linux 2.36.1-4
util-linux-libs 2.36.1-4

如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

As you can see, I have only one Linux Kernel in my Arch Linux system and its version is 5.9.14.

3. Find Installed Linux Kernels in Debian, Ubuntu, Linux Mint, Pop!_OS

In Debian and other Debian-based systems like Ubuntu, Pop!_OS, Linux Mint, we can find the list of all installed Kernels using dpkg command:

$ dpkg --list | grep linux-image

Sample Output:

ii  linux-image-5.19.0-42-generic              5.19.0-42.43~22.04.1                    amd64        Signed kernel image generic
ii  linux-image-5.19.0-45-generic              5.19.0-45.46~22.04.1                    amd64        Signed kernel image generic
ii  linux-image-generic-hwe-22.04              5.19.0.45.46~22.04.20                   amd64        Generic Linux kernel image

如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

4. View installed Kernels in Fedora, CentOS, RHEL, AlmaLinux, Rocky Linux

To view all installed kernels in RPM-based systems like Fedora, CentOS, RHEL, and RHEL-clones such as AlmaLinux, you can use the rpm command as shown below:

$ rpm -qa kernel

Or,

$ rpm -qa | grep -i kernel

Sample Output from Fedora 33:

kernel-core-5.8.15-301.fc33.x86_64

如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

Sample Output from AlmaLinux 8.3:

如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核

5. List All Installed Linux Kernels in openSUSE

The command to list all installed Linux kernels in openSUSE, being an RPM-based system like Fedora and RHEL distributions, is the same:

$ rpm -qa | grep -i kernel

Bonus tip - View only Current Kernel Details

To view the currently running Kernel, you can use one of the following commands:

$ uname -r
5.4.0-65-generic

Or,

$ uname -rs
Linux 5.4.0-65-generic

Or,

$ uname -mrs
Linux 5.4.0-65-generic x86_64

Now, you know the list of installed Kernels on your Linux system. How would you find when a specific Linux Kernel version is last booted? That's easy! Refer the following guide to check when a Linux kernel last used or booted on.

  • Find When A Specific Linux Kernel Version Is Last Booted

Conclusion

In this guide, we have explored various methods to retrieve the list of installed kernels on different Linux distributions. Checking the installed Linux kernels on your system is essential for managing and maintaining a stable and up-to-date operating environment.

By being aware of the installed kernels and their versions, you can ensure that your system is up-to-date with the latest security patches and performance improvements.

Related Read:

  • How To Remove Old Unused Linux Kernels
  • Display Linux Kernel Module Information With Modinfo Command
  • Find out the Linux distribution name, version and Kernel details
  • How To Find Linux System Details Using inxi
  • Neofetch – Display Linux system Information In Terminal
  • Find Linux System Details Using Python
  • How To Find Hardware And Software Specifications In Ubuntu

以上是如何從Commandline列出或檢查所有已安裝的Linux內(nèi)核的詳細(xì)內(nèi)容。更多信息請關(guān)注PHP中文網(wǎng)其他相關(guān)文章!

本站聲明
本文內(nèi)容由網(wǎng)友自發(fā)貢獻(xiàn),版權(quán)歸原作者所有,本站不承擔(dān)相應(yīng)法律責(zé)任。如您發(fā)現(xiàn)有涉嫌抄襲侵權(quán)的內(nèi)容,請聯(lián)系admin@php.cn

熱AI工具

Undress AI Tool

Undress AI Tool

免費(fèi)脫衣服圖片

Undresser.AI Undress

Undresser.AI Undress

人工智能驅(qū)動的應(yīng)用程序,用于創(chuàng)建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用于從照片中去除衣服的在線人工智能工具。

Clothoff.io

Clothoff.io

AI脫衣機(jī)

Video Face Swap

Video Face Swap

使用我們完全免費(fèi)的人工智能換臉工具輕松在任何視頻中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費(fèi)的代碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

功能強(qiáng)大的PHP集成開發(fā)環(huán)境

Dreamweaver CS6

Dreamweaver CS6

視覺化網(wǎng)頁開發(fā)工具

SublimeText3 Mac版

SublimeText3 Mac版

神級代碼編輯軟件(SublimeText3)

Linux中的10個最佳文件比較和差異(diff)工具 Linux中的10個最佳文件比較和差異(diff)工具 Jun 11, 2025 am 10:26 AM

在編寫程序文件或普通文本文件時,程序員和作家有時想知道兩個文件或兩個版本的同一文件之間的區(qū)別。 當(dāng)您在Linux上比較兩個計算機(jī)文件時,其內(nèi)容之間的區(qū)別是

如何從命令行創(chuàng)建一個新的空文件? 如何從命令行創(chuàng)建一個新的空文件? Jun 14, 2025 am 12:18 AM

在命令行中創(chuàng)建空文件的方法有三種:第一,使用touch命令最簡單安全,適合調(diào)試腳本或占位文件;第二,通過>重定向快速創(chuàng)建但會清空已有內(nèi)容,適合初始化日志文件;第三,用echo"">文件名創(chuàng)建帶空字符串的文件,或使用echo-n"">文件名避免換行符。這三種方法各有適用場景,選擇合適的方式能更高效完成任務(wù)。

5 Linux的最佳開源數(shù)學(xué)方程式編輯器 5 Linux的最佳開源數(shù)學(xué)方程式編輯器 Jun 18, 2025 am 09:28 AM

您是否正在尋找編寫數(shù)學(xué)方程式的好軟件?如果是這樣,本文提供了前5個方程式編輯器,您可以輕松地在自己喜歡的Linux發(fā)行版上安裝。

DUTREE-分析Linux中的文件系統(tǒng)磁盤使用情況 DUTREE-分析Linux中的文件系統(tǒng)磁盤使用情況 Jun 11, 2025 am 10:33 AM

Dutree是一種免費(fèi)的開源,快速的命令行工具,用于分析用Rust編程語言編寫的磁盤使用情況。它是通過組合DUREP(磁盤用法記者)和樹(類似樹格格式的列表目錄內(nèi)容)創(chuàng)建的命令行工具

如何在Debian,Ubuntu和Linux Mint中安裝Eclipse IDE 如何在Debian,Ubuntu和Linux Mint中安裝Eclipse IDE Jun 14, 2025 am 10:40 AM

Eclipse是一個免費(fèi)的集成開發(fā)環(huán)境(IDE),世界各地的程序員使用Eclipse插件的其他主要編程語言都用來編寫軟件。

15有用的' ifconfig”命令以在Linux中配置網(wǎng)絡(luò) 15有用的' ifconfig”命令以在Linux中配置網(wǎng)絡(luò) Jun 11, 2025 am 10:01 AM

IFCONFIG在UNIX/Linux操作系統(tǒng)中用于系統(tǒng)/網(wǎng)絡(luò)管理的簡短“接口配置”實(shí)用程序,可通過命令行接口或系統(tǒng)配置腳本進(jìn)行配置,管理和查詢網(wǎng)絡(luò)接口參數(shù)

SCP Linux命令 - 在Linux中安全傳輸文件 SCP Linux命令 - 在Linux中安全傳輸文件 Jun 20, 2025 am 09:16 AM

Linux管理員應(yīng)熟悉命令行環(huán)境。由于通常不安裝Linux服務(wù)器中的GUI(圖形用戶界面)模式。SSH可能是使Linux管理員能夠管理服務(wù)器的最受歡迎的協(xié)議

24個熱鬧的Linux命令,會讓您發(fā)笑 24個熱鬧的Linux命令,會讓您發(fā)笑 Jun 14, 2025 am 10:13 AM

Linux擁有豐富的命令集,盡管其中許多對各種任務(wù)都具有強(qiáng)大的功能,但也有一些有趣且異想天開的命令,您可以嘗試娛樂。 1。SL命令(Steam Locomotive) 您可能知道

See all articles