Re: Check the linux type?
- From: James <deadjimmy@xxxxxxxxxxx>
- Date: Fri, 30 Mar 2007 20:13:34 -0500
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
.
- Follow-Ups:
- Re: Check the linux type?
- From: ray
- Re: Check the linux type?
- From: IvanMarsh
- Re: Check the linux type?
- References:
- Check the linux type?
- From: SamG
- Check the linux type?
- Prev by Date: Re: "ubuntu testing" apt sources
- 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
|