LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-17-2015, 07:35 AM   #1
buzzieboy
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled
Question Which Linux do I have Linux Fedora,Red Hat,Oracle Linux or Debian?


I had my pc built & the person that built it suggested linux, but I don't know what version I have seeing as I'm a novice at computers.
 
Old 02-17-2015, 07:59 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,600

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Look in /etc. There should be a file there with a name like "release" (or "something-something-release-something-else"). you may even find several which ought to describe the same system, but with the contents formatted differently.

On my system, a "ls /etc/*release*" command shows:
Code:
$ ls /etc/*release*
/etc/fedora-release  /etc/redhat-release  /etc/system-release-cpe
/etc/os-release      /etc/system-release

/etc/lsb-release.d:
core-4.1-amd64	 cxx-4.1-noarch      languages-4.1-amd64   printing-4.1-noarch
core-4.1-noarch  desktop-4.1-amd64   languages-4.1-noarch
cxx-4.1-amd64	 desktop-4.1-noarch  printing-4.1-amd64

$ cat /etc/fedora-release
Fedora release 21 (Twenty One)
$ cat /etc/redhat-release
Fedora release 21 (Twenty One)
$ cat /etc/system-release-cpe
cpe:/o:fedoraproject:fedora:21
$ cat /etc/os-release
NAME=Fedora
VERSION="21 (Twenty One)"
ID=fedora
VERSION_ID=21
PRETTY_NAME="Fedora 21 (Twenty One)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:21"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=21
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=21
$ cat /etc/system-release
Fedora release 21 (Twenty One)
all saying "fedora 21" in different ways.

The unlisted "release" entries in the subdirectory are describing things installed, but not the OS release information.

Last edited by jpollard; 02-17-2015 at 08:00 AM.
 
1 members found this post helpful.
Old 02-17-2015, 08:12 AM   #3
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , Slackel 14.1, ChromeOS
Posts: 4,697
Blog Entries: 19

Rep: Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952
In terminal

Code:
uname -a

may be helpful also for a new clueless user who may not know what /etc is even about.

Nice post though by jpollard.
 
Old 02-17-2015, 10:16 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,167

Rep: Reputation: 201Reputation: 201Reputation: 201
Code:
uname -a
will only tell you the kernel, not the distribution. Assuming you can find the terminal by digging through the menu...

Try..
Code:
cat /proc/version
which should give the kernel version and distribution details. (Well, it does with Red Hat!)

Oh! Nearly forgot... Welcome to Linux Questions!

Play Bonny!


Last edited by Soadyheid; 02-17-2015 at 10:18 AM.
 
Old 02-18-2015, 04:31 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Another one
Code:
cat /etc/issue

CentOS release 6.6 (Final)
 
Old 02-18-2015, 06:16 AM   #6
buzzieboy
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for all your responses, although none of your ideas worked. Tried everything you mentioned kept getting "no such file or directory".
 
Old 02-18-2015, 07:08 AM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,600

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by buzzieboy View Post
Thanks for all your responses, although none of your ideas worked. Tried everything you mentioned kept getting "no such file or directory".
The "cat /proc/version" should have provided at least some information - though it may need some decoding as that file exists for every kernel.
 
Old 02-18-2015, 07:28 AM   #8
kuser:)
Member
 
Registered: Sep 2005
Location: Olsztyn, Poland
Distribution: Slackware 14.1
Posts: 168

Rep: Reputation: 91

Probably you didn't expect an answer like this, but:
http://upload.wikimedia.org/wikipedi...n_Timeline.svg
 
1 members found this post helpful.
Old 02-18-2015, 10:48 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
$ lsb_release -a

If defaults weren't overriden:

$ cat /etc/issues
(motd type stuffs)

And a variety of other ways that probably vary depending on the age of a system.
 
Old 02-18-2015, 12:18 PM   #10
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,162

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
It looks like time for some detective work — or asking the chap who installed it!

In a terminal, try

man apt-get
If you get an answer, it's one of the many derivatives of Debian, or PCLinuxOS. If it's PCLinuxOS, the menu should include an entry for the Help Portal. For the Debian stuff, look in /etc/apt/sources.list

man rpm
If you get an answer , it's CentOS, Fedora, or Mageia. Mageia will also have a manual entry for urpmi. CentOS and Fedora can be distinguished by looking in /etc/yum.repos.d

If you've drawn a blank, try looking for man pages for
zypper — that's openSUSE
pacman — that's Arch or Manjaro: to find which, look at /etc/pacman.conf
equo — that's Sabayon
slapt-get — that's Salix or Vector: to find which, look at /etc/slapt-get/slapt-getrc
 
Old 02-18-2015, 12:46 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Code:
cat /etc/*release*
should work on 99% of Linux systems.
 
Old 02-18-2015, 12:46 PM   #12
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 107

Rep: Reputation: 86
Quote:
Originally Posted by buzzieboy View Post
Thanks for all your responses, although none of your ideas worked. Tried everything you mentioned kept getting "no such file or directory".
This may be an obvious question for most (since he's a novice, he might not have considered it), but are you typing the commands that people are suggesting into an open terminal? Does your system boot you directly into the console - where you have a command line that you can enter things - or does it boot you right into a graphical interface? If it's the latter, you'll need to open a terminal first - you should have "xterm" somewhere in your programs menu.
 
Old 02-18-2015, 12:47 PM   #13
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by Soadyheid View Post
Code:
uname -a
will only tell you the kernel, not the distribution.
Many distributions have their name in the kernel, eg:
3.10.0-123.13.2.el7.x86_64

el7 = RHEL 7

If nothing else, it would at least give us the approximate age of the system, and we could adapt the suggestions to suit.
 
Old 02-18-2015, 12:50 PM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 5,999

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Quote:
Originally Posted by buzzieboy View Post
Thanks for all your responses, although none of your ideas worked. Tried everything you mentioned kept getting "no such file or directory".
If:
Code:
uname -a
gives an error I'm not sure you are even running Linux. I have never known it not to return something. What is the result of that command?
 
Old 02-18-2015, 03:31 PM   #15
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 938

Rep: Reputation: 174Reputation: 174
Try the command
Code:
ls
If you get nothing sensible, you don't have Linux.
If it works, please post the first few lines...
 
  


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
LXer: VIDEO: Red Hat CEO Likes CentOS Linux Oracle Linux, Not So Much LXer Syndicated Linux News 0 08-02-2012 11:11 AM
how to install oracle on red hat linux 5 conrad13 Linux - Enterprise 2 05-03-2007 08:06 PM
Oracle 9i on Red Hat Linux Enterprise 3 (WS) ptreves Linux - Software 3 08-25-2004 03:02 PM
Oracle 9i on Red Hat Linux Enterprise 3 (WS) ptreves Linux - Distributions 2 08-25-2004 02:18 PM
Oracle 9i on Red Hat Linux 9.0 ghaurisankar Linux - Software 2 08-01-2003 05:58 AM


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