14

I know Ubuntu is based on Debian but I would like to find out if I am running debian or ubuntu.

Uname:

uname -a

Result:Linux test 2.6.18.8-x86_64-linode10 #1 SMP Tue Nov 10 16:29:17 UTC 2009 x86_64 GNU/Linux

Version:

cat /proc/version

Result:Linux version 2.6.18.8-x86_64-linode10 (root@build.linode.com) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #1 SMP Tue Nov 10 16:29:17 UTC 2009

Lsb-release:

lsb_release -a

Result:

Distributor ID: Debian
Description:    Debian GNU/Linux 5.0.10 (lenny)
Release:        5.0.10
Codename:       lenny

So What is it Debian or ubuntu?

UPDATE:

cat /etc/issue:

Result:

Debian GNU/Linux 5.0 (So I can conclusively say it is debian)

tread
  • 386

1 Answers1

11

You should trust lsb_release since both Debian and Ubuntu claim to be LSB compliant. In your example you are running Debian with an Ubuntu-compiled kernel (according to your /proc/version), that's why you see information about both distributions.

yorodm
  • 234
  • 2
  • 3