BrandCrock | Gateway to Digital Brand

How to Check OS Version in Linux Command?

How to check OS Version in Linux Command? Linux is a free and open-source operating system having many variants of Linux distribution such as OpenSUSE, Debian, Ubuntu, CentOS, Arch, Fedora, RHEL all are common Linux distribution names. During your server maintenance and update, you need to know the installed OS version and name on your server for security patches, upgrading files.

In this article, we will guide you about how to check the Operating System details using the command line in Linux.

How to check OS version in Linux?

Using os-release file available in Linux’s etc directory.

Command:

# cat /etc/os-release 

Output:

NAME="openSUSE Leap"
VERSION="42.2"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.2"
PRETTY_NAME="openSUSE Leap 42.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

More from our latest blogs

Deepseek is doing the impossible - BrandCrock GmBH

DeepSeek Is Doing the Impossible. And Everyone Should Be Paying Attention!

For years, we’ve been told that the future of AI belongs to those with the

AI Vaid Ali Jan 29, 2025

How to Create an Empty file in Linux Command Line

Creating an empty file in Linux might seem like a trivial task, but it is

Programming Vaid Ali Jan 16, 2025

BrandCrock: Your Offshore Shopware Certified Partner

When it comes to selecting the right e-commerce platform, businesses often face an important decision

Shopware Mustafa Ali Jan 15, 2025

Exploring Shopware 6.5: New Features and Enhancements

The E-Commerce industry has been on the rise for the past few years, and with

Shopware Vaid Ali Jan 14, 2025
1 4 5 6 7 8 41
Scroll to Top