How to check linux kernel version11/5/2023 Entering it without options will tell you that you’re using Linux.Īdding the “ -r” switch will print the kernel release as standard output. The system command, uname, is used to print system information to the terminal. Find Your Linux Kernel Version With Uname Open the terminal by pressing Ctrl + Alt + T or by selecting it from your system menu. You can find out which kernel version you have using the terminal. This can help you to diagnose problems, and help you find out if there are performance gains to be made by switching kernel. We also gave examples of how to list Linux operating system information.It’s always a good idea to know which Linux kernel you’re running. In this tutorial you have seen a number of ways in which you can check the Linux kernel version. Below is an example of this from an Ubuntu server: $ cat /etc/os-releaseĪnother option here is to use the lsb_release command: $ lsb_release -a Distributor ID: Ubuntu First of all, there is a file – /etc/os-release – which contains details on the installed operating system. Whilst we are here, a similar question is around how to list Linux operating system information, so I thought it was worthwhile listing a couple of ways to do this here. How to List Linux Operating System Information Additionally, the first command also tells us about the Linux version – Ubuntu – and some information about the architecture. You can see the Kernel version 5.11.0-1022 in the output of both commands. Lets have a look at a couple of examples: $ cat /proc/version For example, lsmod is the same as cat /proc/modules while lspci is the same as cat /proc/pci. Many Linux system utilities are calls to files in this directory. Proc is a virtual filesystem on Linux which contains runtime system information. There are a few ‘files’ in /proc which contain information on our Linux kernel version. 23~20.04.1-Ubuntu SMP Mon Nov 15 14:03: – Timestamp for the kernel build.This output can be a bit confusing at first glance, but it can be broken down as follows: To output all the information, including the kernel version, you would use uname -a. You can output other information using uname, depending on which option you use when running the command. To retrieve the Linux kernel version with uname we can use the -r option: $ uname -r The uname (short for unix name) command can be used to retrieve a bunch of Linux system information. List Linux Kernel and System Information with uname That may be all you need, but let’s have a look at a few other commands. If we just wanted to check the kernel version we could filter the output using grep: $ hostnamectl | grep Kernel The output includes the operating system version, Kernel version, system architecture and more. This command returns a bunch of information about your Linux system and outputs it as a formatted list: $ hostnamectl The first command I want to mention is hostnamectl. Get Linux Version Information using hostnamectl What version of Linux am I running? Have you ever been staring at a CLI prompt wondering how to check what version of Linux or which Kernel version you are running on your Linux system? If so, read on, as we will go through a bunch of commands to show you how to get this information.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |