how to check linux version
- User
how to check linux version
- Assistant
You can check the version of your Linux operating system using several commands in the terminal. Here are some common methods:
-
Using
lsb_release: This command displays the Linux Standard Base and distribution information.lsb_release -aIf this command is not available, you may need to install the
lsb-releasepackage. -
Using
/etc/os-release: This file contains information about the OS version.cat /etc/os-release -
Using the
hostnamectlcommand: This command is commonly available on systems usingsystemd.hostnamectl -
Checking the kernel version: You can find out the kernel version using:
uname -ror for more detailed kernel information:
uname -a -
Using the file: Some distributions have a file:
-