![]() The hostnamectl command is a systemd utility that is used to get the Linux operating system information and also used to change or set the system hostname. $ lsb_release -aįind Linux OS Information hostnamectl Command Once installed, run the lsb_release utility to print the standard Linux system information as shown. The lsb_release command is not installed by default, you need to install it using your default package manager as shown. $ cat /etc/gentoo-release įind Linux Distribution Name and Release lsb_release CommandĪlternatively, you can also use the lsb_release tool, which will print LSB (Linux Standard Base) information about the Linux distribution on your terminal. ![]() etc/os-release file $ cat /etc/os-release The best way to determine a Linux distribution name and release version information is by using the cat /etc/os-release command, which works on almost all Linux systems. Date and time when the kernel was built: Thu Oct 20 15:10:įind the Linux Distribution Name and Release Version. ![]() Type of the kernel: #1 SMP (Symmetric MultiProcessing kernel) supports systems with multiple CPUs or multiple CPU cores.A version of the GCC compiler used for building the kernel: gcc version 20.04.1.Name of the user who compiled your kernel:.A version of the Linux (kernel) you are running: Linux version 5.15.0-53-generic.Simply type the command below to display some of your system information including the Linux kernel version: $ cat /proc/versionįrom the image above, you have the following information: Next, we will use /proc file system, which stores information about processes and other system information, it’s mapped to /proc and mounted at boot time. You can also use -a option with uname command to print all system information as shown: $ uname -aĬheck the Linux Kernel Version Find Linux OS Info Using /proc/version File In the preceding command, the option -o prints the operating system name, and -r prints the kernel release version. To find out which version of Linux kernel you are running, type: $ uname -or We will use the uname command, which is used to print your Linux system information such as kernel version and release name, network hostname, machine hardware name, processor architecture, hardware platform, and the operating system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |