Command to differentiate Linux distributions and versions - Questions
This is a discussion on Command to differentiate Linux distributions and versions - Questions ; Is there a linux command function that will tell me the linux
distribution (RedHat, SuSE, Mandrake, Debian, etc.) and version
information (for RedHat: 7.3, 8.0, 9.0; for SuSE: 7.3, 8.0, 8.1, 8.2)?
I would like to be able to identify ...
-
Command to differentiate Linux distributions and versions
Is there a linux command function that will tell me the linux
distribution (RedHat, SuSE, Mandrake, Debian, etc.) and version
information (for RedHat: 7.3, 8.0, 9.0; for SuSE: 7.3, 8.0, 8.1, 8.2)?
I would like to be able to identify the Linux distribution and version
in my script.
Thanks in advance,
Ken
-
Re: Command to differentiate Linux distributions and versions
On 18 Sep 2003 16:57:44 -0700, Ken Jones wrote:
> Is there a linux command function that will tell me the linux
> distribution (RedHat, SuSE, Mandrake, Debian, etc.) and version
> information (for RedHat: 7.3, 8.0, 9.0; for SuSE: 7.3, 8.0, 8.1, 8.2)?
>
> I would like to be able to identify the Linux distribution and version
> in my script.
>
Can depend on distribution.
Try cat /proc/version
Redhat/Mandrake cat /etc/*release*
for the rest go here
http://groups.google.com/advanced_group_search
and in the first box, put
echo Caldera Base Version - /var/lib/LST/BASEVERSION:
*linux* in the Newsgroup, pick English
-
Re: Command to differentiate Linux distributions and versions
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
On 2003-09-19, Bit Twister wrote:
> On 18 Sep 2003 16:57:44 -0700, Ken Jones wrote:
>> Is there a linux command function that will tell me the linux
>> distribution (RedHat, SuSE, Mandrake, Debian, etc.) and version
>> information (for RedHat: 7.3, 8.0, 9.0; for SuSE: 7.3, 8.0, 8.1, 8.2)?
Since such a command would be distribution-specific, I'd say no.
> Can depend on distribution.
> Try cat /proc/version
That will give the *kernel* information, which won't be helpful if the
admin has compiled a custom kernel.
> Redhat/Mandrake cat /etc/*release*
The file /etc/slackware-version works for Slackware (and Slackintosh).
--keith
--
kkeller-mmmspam@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAj9qrroACgkQhVcNCxZ5ID9JBACfYbPoh7makJ OrlpE+kz1lKCWG
q1wAoJrBIzE7NuMXK8WAp/EVB7Z85Cy+
=JHc1
-----END PGP SIGNATURE-----