Linux - Find OS Version in Ubuntu and openSUSE from Command Line Terminal

Printer-friendly versionPDF version
Find OS version from command line terminal

To find the operating system version number and name from the terminal in Ubuntu and openSUSE (should work in other Linux operating systems as well, but may need to install the package), you need to run the lsb_release command. Here are a few examples:

 

lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
 
or
 
lsb_release -r
Release: 12.04

 

Post new comment