Re: Check the linux type?
- From: birre <spamtrap@xxxxxxxxxxxx>
- Date: Fri, 30 Mar 2007 10:35:38 +0200
On 2007-03-30 02:22, Moe Trin wrote:
On 29 Mar 2007, in the Usenet newsgroup alt.os.linux, in article
<1175167247.049377.216050@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
.
- Follow-Ups:
- Re: Check the linux type?
- From: Sybren Stuvel
- Re: Check the linux type?
- From: SamG
- Re: Check the linux type?
- From: Dan N
- Re: Check the linux type?
- References:
- Check the linux type?
- From: SamG
- Re: Check the linux type?
- From: Moe Trin
- Check the linux type?
- Prev by Date: Re: proc/meminfo
- 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
|