In a tutorial, I’m prompted “If you are running Squeeze, follow these instructions…” and “If you are running Wheezy, follow these other instructions…”
When I run uname, I get the following information:
Linux dragon-debian 3.2.0-4-686-pae #1 SMP Debian 3.2.63-2+deb7u2 i686 GNU/Linux
Is that information enough to know if I’m using Squeeze or Wheezy, or do I get that from somewhere else?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Commands to try:
• cat /etc/*-release
• cat /proc/version
• lsb_release -a
– this shows “certain LSB (Linux Standard Base) and distribution-specific information”.
For a shell script to get the details on different platforms, there’s this related question.
Method 2
To get the exact version number use
cat /etc/debian_version
Method 3
$ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Method 4
[email protected]:/usr/share/applications$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0