Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-03-2006, 06:11 PM   #1
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, 06:13 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

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

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399

For machines running LFS:

Old 07-03-2006, 06:24 PM   #4
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, 06:48 PM   #5
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 06:50 PM.
Old 07-04-2006, 05:48 AM   #6
spirit receiver
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

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


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 08:42 PM
Distro Information from Bash shifty_eyes Linux - Newbie 7 10-13-2005 09:18 PM
bash searching directries and find the files bekirsagir Programming 1 08-19-2005 05:37 AM
Identifying files in bash script Cruger Programming 7 03-15-2004 11:49 AM
same find command not working in bash script, quotes? QuakerOatz Linux - Software 1 07-14-2003 01:04 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration