Skip to main content
4 of 4
Removed information around cat /etc/proc as it's unneeded and this continues to provide the most general way of obtaining distro info.
rwc
  • 861
  • 5
  • 7

You'll want to use:

$ cat /etc/*-release

You'll get a response similar to this:

$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
rwc
  • 861
  • 5
  • 7