Linux How to Check Operating System (O/S) Version

From myWiki
Revision as of 14:12, 18 July 2020 by Stevet (talk | contribs)

Type any one of the following command to find os name and version in Linux:

cat /etc/os-release
lsb_release -a
hostnamectl


Template:Pre

stevet@wiki:/var/lib/mediawiki$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04
Release: 20.04
Codename: focal

stevet@wiki:/var/lib/mediawiki$ hostnamectl
  Static hostname: wiki
        Icon name: computer
       Machine ID: 561a386d67b140d1829ee7e3e33293b9
          Boot ID: a478669cfef54a6a9b46195b82923dcc
 Operating System: Ubuntu 20.04 LTS
           Kernel: Linux 5.4.0-1013-raspi
     Architecture: arm64

Type the following command to find Linux kernel version:

uname -r
stevet@wiki:/var/lib/mediawiki$ uname -r

5.4.0-1013-raspi