check Raspbian version

The easiest way to check the version of Raspbian OS running on your Raspberry Pi is to use the lsb_release command:

[email protected]:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch

As you can see from the above, you get the full version (major and minor release numbers – 9.4) plus the distributor ID (Raspbian) and the current major release codename: stretch (this codename is usually specified in /etc/apt/sources.list file to be used by the apt tool).

Finally, if you were looking for the Linux kernel information, just use uname -a:

[email protected]:~ $ uname -a
Linux becky 4.14.48-v7+ #1118 SMP Thu Jun 7 16:40:27 BST 2018 armv7l GNU/Linux

See Also




Keep Learning

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative I'm also a fan of SetApp for macOS: SetApp for macOS
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
09 Mar 2022

Linux Mint as a Desktop OS

14 Oct 2021

Ubuntu 21.10 Impish Indri

15 Aug 2021

Python 3.10 Released

Recent Tweets