Linux How to Check Operating System (O/S) Version
Type any one of the following command to find os name and version in Linux:
cat /etc/os-release lsb_release -a hostnamectl
stevet@wiki:/var/lib/mediawiki$ cat /etc/os-release NAME="Ubuntu" VERSION="20.04 LTS (Focal Fossa)" ID=ubuntu ID_LIKE= PRETTY_NAME="Ubuntu 20.04 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal |
stevet@wiki:/var/lib/mediawiki$ lsb_release -a No LSB modules are available. |
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
|