Re: Check the linux type?
- From: ray <ray@xxxxxxxxxx>
- Date: Thu, 29 Mar 2007 10:12:47 -0600
On Thu, 29 Mar 2007 16:48:49 +0100, BearItAll wrote:
SamG wrote:
Hi,
How do i check what linux type am i using from a script. Like ubuntu
or suse or fedora.
Sam
I always believed /proc/version was standard, I just checked the two distros
I have near me, but worth checking that it is really standard for your
script.
#!/bin/bash
y=`cat /proc/version`
echo $y
#note: back slashes around the command (next to the number 1 key on UK
keyboard)
That does have a lot of information about the kernel but, for example, on
my Ubuntu install it does not mention the Ubuntu version number.
.
- References:
- Check the linux type?
- From: SamG
- Re: Check the linux type?
- From: BearItAll
- Check the linux type?
- Prev by Date: Re: Check the linux type?
- Next by Date: Re: Sorting a directory for a slide show.
- Previous by thread: Re: Check the linux type?
- Next by thread: Re: Check the linux type?
- Index(es):
Relevant Pages
|