LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2009, 04:37 AM   #1
HornyWolf
LQ Newbie
 
Registered: Aug 2006
Location: Eelde, Netherlands
Distribution: OpenSuse/Debian/CentOS
Posts: 3

Rep: Reputation: 0
Angry Which Linux distro did I use


Hello,

Last year I installed a Linux distro (without a GUI) on a machine and made a FTP-server of it. Now I have forgotten which distribution I have used.

Is there a /waycommand to see which I have used.

Greetzzzzzz........
 
Old 03-23-2009, 04:38 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
lsb_release -a
 
Old 03-23-2009, 04:42 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Not well supported yet - but worth a try.
Also "uname -a" will probably give some hint(s); there should be something in etc, but varies by distro.
 
Old 03-23-2009, 04:50 AM   #4
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
Quote:
Originally Posted by repo View Post
lsb_release -a
Just checked this on Fedora 10 and it doesn't give any clue about what I'm using.

uname -a has at least, hidden in a lot of other text, this: fc10
But the complete line looks like this
Linux raven.home.lan 2.6.27.19-170.2.35.fc10.x86_64 #1 SMP Mon Feb 23 13:00:23 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
so it could be missed if you don't know what you're looking for.

I'd suggest this one:
Code:
ls /etc | egrep "release|version"
Works on Red Hat-systems (including Fedora and CentOS), Debian, Slackware and partially on Ubuntu (which identifies as Debian). Maybe also others, but these are the ones I gave a quick test.
 
Old 03-23-2009, 05:23 AM   #5
ps_sabu
Member
 
Registered: Nov 2006
Location: Kerala, South India
Distribution: Ubuntu 12.10, Ultimate Edition 3.5, OZ Unity 3.0 Black Opal
Posts: 117

Rep: Reputation: 15
Quote:
Quote:

Just checked this on Fedora 10 and it doesn't give any clue about what I'm using.
That surprises me. My output

Quote:
[root@localhost sabu]# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch
Distributor ID: Fedora
Description: Fedora release 10 (Cambridge)
Release: 10
Codename: Cambridge

Last edited by ps_sabu; 03-23-2009 at 05:24 AM.
 
Old 03-23-2009, 05:34 AM   #6
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
Sorry, my bad. My mind must have blanked out the -a...
 
Old 03-23-2009, 07:06 AM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
One of these should do it...

Quote:
commands for knowing which linux is running

lsb_release -a
cat /etc/redhat-release
ls /etc | grep release

cat /etc/*release*
cat /etc/*version*

cat /etc/issue
 
Old 03-25-2009, 11:00 AM   #8
HornyWolf
LQ Newbie
 
Registered: Aug 2006
Location: Eelde, Netherlands
Distribution: OpenSuse/Debian/CentOS
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks all!

ls /etc | egrep "release|version" said Suse release
cat /etc/*release* told me it was OpenSuse 10.0, VERSION 10.0

Greetzzzzzz..........
 
  


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
Which Linux Distro? Most complete out of the box Linux distro? P@trick99 Linux - Newbie 18 06-18-2014 08:19 AM
Help with deleting a linux distro partition to install another linux distro instead gexecuter Linux - Newbie 1 08-04-2007 05:44 PM
LXer: DistroWatch Weekly: Distro hopping, Linux Format's distro mega-test LXer Syndicated Linux News 0 06-11-2007 05:47 AM
want to remove linux distro & replace it with a different distro deardoom Linux - Newbie 5 03-20-2006 07:14 PM


All times are GMT -5. The time now is 02:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration