To check the operating system details of a Raspberry Pi from the command line, we have the following options.
Option 1: Type the following command and check the details.
The contents of os-release file has the details of the OS ( Operating system). A sample screenshot is given below.
Option 2: Using lsb_release command
Type the following command
A sample output of the command is given below.
If you are getting an error “command not found”, then you need to install the following package using the below command.
sudo apt-get install lsb_release
The above command will install the lsb_release package.
I hope these tips help someone 🙂