How to see Raspberry Pi OS version on Raspberry PI

How to see Raspberry Pi OS version on Raspberry PI

To see the Raspberry Pi OS version on a Raspberry Pi, you can use the cat command to display the contents of the /etc/os-release file. The /etc/os-release file is a standard file that contains information about the operating system, including its name and version.

Here's an example of how to use cat to see the Raspberry Pi OS version:

refer to:‮tual‬turi.com
$ cat /etc/os-release

This will display the contents of the /etc/os-release file, including the name and version of the operating system.

For example, if you are running Raspberry Pi OS (previously known as Raspbian), the /etc/os-release file will contain a line similar to this:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

This indicates that you are running Raspberry Pi OS version 10 (codenamed "buster").

Note: The specific options and syntax for the cat command may vary depending on your Linux distribution and version. Consult the cat man page or documentation for your system for more information.

It's also worth noting that the /etc/os-release file is not the only way to see the Raspberry Pi OS version. You can also use the lsb_release command to display similar information:

$ lsb_release -a

This will display the name, version, and other information about the operating system.

Created Time:2017-10-29 22:08:37  Author:lautturi