LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 04-28-2005, 03:35 AM   #1
gigix
LQ Newbie
 
Registered: Apr 2005
Distribution: SuSE 9.2 professional
Posts: 3

Rep: Reputation: 0
How to get linux distribution with command bash or script


Hi, i need to know linux distribution on a machine with a command bash or a script ..thx on advance for yur help

Bye all
 
Old 04-28-2005, 03:58 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,

take a look here.

regards

slackie1000
 
Old 04-28-2005, 04:02 AM   #3
gigix
LQ Newbie
 
Registered: Apr 2005
Distribution: SuSE 9.2 professional
Posts: 3

Original Poster
Rep: Reputation: 0
I've see that there's not a standard method to get distribution
thx a lot
 
Old 04-28-2005, 04:11 AM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
cat /proc/version

KC
 
Old 04-28-2005, 05:30 AM   #5
gigix
LQ Newbie
 
Registered: Apr 2005
Distribution: SuSE 9.2 professional
Posts: 3

Original Poster
Rep: Reputation: 0
mhh cat /proc/version display distribution name on Red Hat but not on Suse for example
 
Old 04-28-2005, 06:17 AM   #6
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,

for the record ...
Code:
$ cat /proc/version
Linux version 2.4.18-64GB-SMP (root@F91) (gcc version 2.95.3 20010315 (SuSE)) #1 SMP Thu Aug 7 12:41:16 UTC 2003
$ uname -a
Linux XXXX  2.4.18-64GB-SMP #1 SMP Thu Aug 7 12:41:16 UTC 2003 i686 unknown
$ cat /etc/SuSE-release
SuSE Linux 8.0 (i386)
VERSION = 8.0
there is no rule... need to try ...

regards

slackie1000
 
  


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
Bash Script, no new line for echo command jorisb Linux - General 5 11-05-2005 12:08 AM
Bash Script; command not found twintornado Programming 2 06-01-2005 09:59 AM
Bash script - repeated command satimis Programming 27 10-28-2004 05:02 AM
Simple Bash Script Help Command kemplej Linux - Software 1 03-11-2004 03:52 AM
Bash script; command and args in variable. magjo813 Programming 2 02-16-2004 09:22 AM


All times are GMT -5. The time now is 12:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration