LinuxQuestions.org
Review your favorite Linux distribution.
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, 07:01 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
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, 07:02 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870
Is this a question?
 
Old 08-15-2011, 07: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, 09:44 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
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, 10: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, 10: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, 10:47 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:43 PM
[SOLVED] How do I find out which version of Linux I have? William B Mauk Linux - Newbie 11 01-12-2011 04:39 PM
how do i find out what version of linux is in my comp? mariaD Linux - Newbie 11 10-15-2009 04:22 PM
How to find the Flavor and the version of Linux? koolks Linux - Newbie 3 02-27-2007 08:04 AM
how to find the version of linux pochx Linux - General 7 09-22-2006 08:03 AM

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

All times are GMT -5. The time now is 06:39 AM.

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