LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-03-2006, 05:11 PM   #1
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Trying to find the files that contain distro information for my bash script


Hello all,

Well this didn't seem to fit very well into the other forums, so i figured it's general

Basically as a pet project of mine i'm creating a bash script that lists all sorts of system information, you know, kernel, processor, memory, HD space, etc etc

I'm onto the distro bit, writing it in to check for a file and output depending which file it finds is fine, but what are the files? i've been googling and searching here without much success, i only have arch, and the info is in /etc/arch-release and i know that redhat (and fedora?) use /etc/redhat-release so it would be safe to assume that most systems use this as a seudo-standard? i put things like /etc/debian-release and /etc/suse-release and got nowt.

What i am after is for you guys to post the location of your distro info for your system. Obviously i don't need 20 posts telling me the same thing

Cheers very much people
 
Old 07-03-2006, 05:13 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I have /etc/slackware-version on my system.
 
Old 07-03-2006, 05:20 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

For machines running LFS:

/etc/lfs-release
 
Old 07-03-2006, 05:24 PM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
Thanks alot guys, keep em coming
 
Old 07-03-2006, 05:48 PM   #5
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Bash (help writing script)

Sorry, hit reply instead of new post ;(. Need a moderator to remove this totally irrelevant post.

Last edited by lebabyg; 07-03-2006 at 05:50 PM.
 
Old 07-04-2006, 04:48 AM   #6
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
Code:
ada@barnabas:/etc> cat /etc/SuSE-release
SUSE LINUX 10.1 (i586)
VERSION = 10.1
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Bash, Find script files in a directory or subdirectories within... ray5_83 Programming 4 10-10-2008 07:42 PM
Distro Information from Bash shifty_eyes Linux - Newbie 7 10-13-2005 08:18 PM
bash searching directries and find the files bekirsagir Programming 1 08-19-2005 04:37 AM
Identifying files in bash script Cruger Programming 7 03-15-2004 10:49 AM
same find command not working in bash script, quotes? QuakerOatz Linux - Software 1 07-14-2003 12:04 PM


All times are GMT -5. The time now is 08:53 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