Re: Check the linux type?
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Thu, 29 Mar 2007 19:22:38 -0500
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
.
- Follow-Ups:
- Re: Check the linux type?
- From: birre
- Re: Check the linux type?
- From: SamG
- Re: Check the linux type?
- References:
- Check the linux type?
- From: SamG
- Check the linux type?
- Prev by Date: Re: DHCP connection time
- Next by Date: Re: FREE Linux Shell Provider
- Previous by thread: Re: Check the linux type?
- Next by thread: Re: Check the linux type?
- Index(es):
Relevant Pages
|