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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |