Re: Check the linux type?
- From: ray <ray@xxxxxxxxxx>
- Date: Fri, 30 Mar 2007 20:22:18 -0600
On Fri, 30 Mar 2007 20:13:34 -0500, James wrote:
SamG wrote:
Hi,
How do i check what linux type am i using from a script. Like ubuntu
or suse or fedora.
Sam
Does "uname -a" not return acceptable information for what your purpose
is? I see a lot of follow ups to this post about release files in /etc
and version files in /proc, and how they differ between distros.
I only run Fedora...Fedora5 and Fedora6 so I can't speak for other
distros, but when I run this command on my machines they return strings:
Linux Gaea 2.6.18-1.2239.fc5 #1 Fri Nov 10 13:04:06 EST 2006 i686 i686
i386 GNU/Linux
and
Linux Oceanus 2.6.20-1.2925.fc6 #1 SMP Sat Mar 10 19:15:16 EST 2007 i686
i686 i386 GNU/Linux
James http://cronus.ath.cx
Here's one example.
uname -a
Linux localhost 2.6.19-gentoo-r5 #2 Wed Mar 28 20:03:32 MDT 2007 i686 VIA Nehemiah CentaurHauls GNU/Linux
.
- Follow-Ups:
- 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: James
- Check the linux type?
- Prev by Date: Re: Check the linux type?
- Next by Date: simple question
- Previous by thread: Re: Check the linux type?
- Next by thread: Re: Check the linux type?
- Index(es):
Relevant Pages
|