This page explains how to find SUSE or OpenSUSE Linux version using the cat command and other commands.
Finding OpenSUSE / SUSE Linux version
Open a terminal application (or log in using the lsb_release command. LSB means Linux Standard Base. Firs install a package called lsb_release using the zypper command:
$ sudo zypper install lsb-release
Sample outputs:
Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: lsb-release 1 new package to install. Overall download size: 9.2 KiB. Already cached: 0 B. After the operation, additional 16.2 KiB will be used. Continue? [y/n/...? shows all options] (y): y Retrieving package lsb-release-2.0-28.3.noarch (1/1), 9.2 KiB ( 16.2 KiB unpacked) Retrieving: lsb-release-2.0-28.3.noarch.rpm ................................................................................................................................................................................[done (1.2 KiB/s)] Checking for file conflicts: ...........................................................................................................................................................................................................[done] (1/1) Installing: lsb-release-2.0-28.3.noarch ..........................................................................................................................................................................................[done]
Once installed type the following command:
$ lsb_release -a
Sample outputs:
LSB Version: n/a Distributor ID: openSUSE project Description: openSUSE Leap 42.3 Release: 42.3 Codename: n/a
The -a option show all of the above information but we have additional options.
Show the release number
lsb_release -r
Find the distributor’s ID
lsb_release -i
View a description of Linux distro
lsb_release -d
Display the code name of the OpenSUSE
lsb_release -c
Getting help message on screen is easy. All you have to do is type the following command:
lsb_release -h
hostnamectl command to get SUSE Operating System version
One can use hostnamectl command to query and change the system hostname and related settings. It can also display your operating system version. Type the following hostnamectl command:
$ hostnamectl
Finding OpenSUSE / SUSE Linux version
Is my SUSE Linux 32 vs 64 Bit?
We can query Linux system configuration variables using the getconf command. Run the following command:
getconf LONG_BIT
Sample outputs:
64
For more info see my previous FAQ: “How do I know if my Linux is 32 bit or 64 bit?“. Finding a version helps us to install correct software and other utilities. In some cases, sysadmin and developers can patch their machine against known vulnerabilities. The goal is to keep your server safe and secure against bad guys. Hence, finding the OpenSUSE/SUSE version is an essential task for the OPs team.
Conclusion
This page showed how to find out SUSE Enterprise Linux (SLE) and OpenSUSE Linux version using various command line options. I suggest that you read the following man pages for more information or read it online here:
man cat
man lsb_release
man hostnamectl
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 3 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Hello,
I installed open suse 12.2 and got problems to get to internet. I can see that I am connected to my local WiFi, and the wired one. when I ping 8.8.8.8, it works but the ping to DNS not working exemple google.com. please feed me if any help can be found
Nasreldin
lsb_release -a
Really helpful. Thanks