Re: Check the linux type?
- From: IvanMarsh <annoyed@xxxxxxx>
- Date: Sat, 31 Mar 2007 01:50:27 GMT
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.
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
The OP is looking for information on the distribution of Linux. Uname only
gives information about the kernel.
Because of Fedora's kernel naming convention (ending the kernel name
with .fc(version)) it's possible to tell which version of Fedora you're
running if you're running a default kernel.
Other distributions don't, necessarily, include any information about the
distribution in their naming structure.
.
- 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: 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
|