James wrote:
> Andreas Rönnquist wrote:
> > Why doesn't /etc/issue say 7.8 though?
> > Not much of an answer, but in addition to /etc/issue there is
> > also /etc/debian_version, which does give 7.8.
> 
> Thanks.
> There should be standard file for all distros. :-)

Oh but there is!  The Linux Standard Base created a standard way to do
this using the lsb_release command quite some years ago.

  # apt-get install lsb-release

  $ lsb_release --short --release
  7.8

You can read about it here:

  http://www.linuxbase.org/

And of course here:

  http://xkcd.com/927/

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to