Description:
How to determine your Linux distribution?
Solution:
Get the current kernel information:
root@sp:~# uname -a
root@sp:~# cat /proc/version
Get the current distribution release:
root@sp:~# cat /etc/*release
Example:
Red Hat
/etc/redhat-release, /etc/redhat_version
SUSE Linux
/etc/SuSE-release, /etc/novell-release, /etc/sles-release
Fedora
/etc/fedora-release
Slackware
/etc/slackware-release, /etc/slackware-version
Debian
/etc/debian_release, /etc/debian_version
Mandrake
/etc/mandrake-release, /etc/mandakelinux-release
Sun JDS
/etc/sun-release
Solaris/Sparc
/etc/release
Gentoo
/etc/gentoo-release
Mint Linux
/etc/linuxmint/info
Yellow Dog
/etc/yellowdog-release
Ubuntu Linux
/etc/lsb-release
Knoppix
knoppix_version
Arch Linux
/etc/arch-release
No comments:
Post a Comment