Re: Check the linux type?
- From: "SamG" <mad.vijay@xxxxxxxxx>
- Date: 30 Mar 2007 03:16:22 -0700
On Mar 30, 1:35 pm, birre <spamt...@xxxxxxxxxxxx> wrote:
On 2007-03-30 02:22, Moe Trin wrote:
On 29 Mar 2007, in the Usenet newsgroup alt.os.linux, in article
<1175167247.049377.216...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, SamG wrote:
How do i check what linux type am i using from a script.
No guaranteed standard way. Many distributions include a release or
version file in /etc/ - so you can look for /etc/*release and then
/etc/*version. If the distribution is following the Linux System
Base standard, there should be a command 'lsb_release'
lsb_release -- print distribution specific information
Like ubuntu
Debian derivative - has a useless /etc/debian-version file but the real
information is available from the 'lsb_release' command
or suse
cat /etc/SuSE-release
or fedora.
/etc/fedora-release (also has or had /etc/redhat-release)
Old guy
Solaris has a file called just /etc/release ,
why can't this be a standard?, it just sux one must know
which distribution it is before one can figure out the name of the file
that will tell me which distribution it is.
/birre
I found a file name "/etc/issue" but that seems to be an editable file
which is used to issue the contents on the screen when the user non
gui login screen is prompted.
I doubt if this file is part of other distros(Ubuntu and ubuntu
clones)
SamG
.
- Follow-Ups:
- Re: Check the linux type?
- From: John Hasler
- Re: Check the linux type?
- From: abelenda
- Re: Check the linux type?
- References:
- Check the linux type?
- From: SamG
- Re: Check the linux type?
- From: Moe Trin
- Re: Check the linux type?
- From: birre
- Check the linux type?
- Prev by Date: Re: Check the linux type?
- Next by Date: Re: Check the linux type?
- Previous by thread: Re: Check the linux type?
- Next by thread: Re: Check the linux type?
- Index(es):
Relevant Pages
|