LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-15-2011, 06:01 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
To find out what version of Linux Debian?


To find out what version of Linux (distro) you are running, enter the following command at the shell prompt:
$
Code:
cat /etc/*-release
(without installing lsb-release please)

Thank you in advance
 
Old 08-15-2011, 06:02 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Is this a question?
 
Old 08-15-2011, 06:27 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Try this:
Code:
cat /etc/issue
ciao,
jdk
 
Old 08-15-2011, 08:44 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by jdkaye View Post
Try this:
Code:
cat /etc/issue
ciao,
jdk
Great thanks a lot. it works

this command above I think works with redhat or rpm based linux distros...


Sounds great. however the codename could have been written in the issue ... anyhow thnaks a lot
Code:
 cat /etc/issue
Debian GNU/Linux 6.0 \n \l
 
Old 08-15-2011, 09:05 AM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Another way is:

Code:
cat /etc/*version
(Gives you the codename only)
 
Old 08-15-2011, 09:22 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by Xeratul View Post
Great thanks a lot. it works

this command above I think works with redhat or rpm based linux distros...


Sounds great. however the codename could have been written in the issue ... anyhow thnaks a lot
Code:
 cat /etc/issue
Debian GNU/Linux 6.0 \n \l
It does on my system:
Code:
~$ cat /etc/issue
Debian GNU/Linux wheezy/sid \n \l
On the other hand:
Code:
~$ cat /etc/*version
wheezy/sid
cat: /etc/subversion: Is a directory
Make sure you don't have subversion installed. But no real harm done.
ciao,
jdk
 
Old 08-15-2011, 09:47 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by jdkaye View Post
It does on my system:
Code:
~$ cat /etc/issue
Debian GNU/Linux wheezy/sid \n \l
On the other hand:
Code:
~$ cat /etc/*version
wheezy/sid
cat: /etc/subversion: Is a directory
Make sure you don't have subversion installed. But no real harm done.
ciao,
jdk
so cool. many thanks. I knew that lsb=-release was not necessary
I was lookking into the /proc ..
 
Old 08-15-2011, 10:38 AM   #8
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by jdkaye View Post
On the other hand:
Code:
~$ cat /etc/*version
wheezy/sid
cat: /etc/subversion: Is a directory
Make sure you don't have subversion installed. But no real harm done.
ciao,
jdk
I didn't think about it; in that case, the full file name can be given, assuming you will run the command on a Debian system (or a debian based one):

Code:
cat /etc/debian_version
Regards.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find version of linux safun75 Linux - Newbie 20 01-09-2012 08:43 PM
[SOLVED] How do I find out which version of Linux I have? William B Mauk Linux - Newbie 11 01-12-2011 03:39 PM
how do i find out what version of linux is in my comp? mariaD Linux - Newbie 11 10-15-2009 03:22 PM
How to find the Flavor and the version of Linux? koolks Linux - Newbie 3 02-27-2007 07:04 AM
how to find the version of linux pochx Linux - General 7 09-22-2006 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration