0 Members and 1 Guest are viewing this topic.
That only works on Centos, Fedora, and redhat as they either have /etc/redhat-release or /etc/fedora-release or both. For other distros you need to use other methods, but if they have the lsb packages installed you can just do `lsb_release -a `
root@chronic:~# lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 6.0.5 (squeeze)Release: 6.0.5Codename: squeezeroot@chronic:~# gcc -vgcc version 4.4.5 (Debian 4.4.5-8)
Executing "cat /etc/*-release" in your shell prompt will tell you the distribution and the version of the release. You can find out your GCC version by entering "gcc -v" in your shell of your choice.
I don't use linux on my soldat server because only fucking nerds with no life are up onto this shit id rather pay these 300 bucks for microsoft server instead of that fucking retarded 700 dollar fee that i legally owe novell if i use linux on my server.also its too mainstream i use bsd
Quote from: CurryWurst on June 10, 2012, 06:13:13 amExecuting "cat /etc/*-release" in your shell prompt will tell you the distribution and the version of the release. You can find out your GCC version by entering "gcc -v" in your shell of your choice.That only works on Centos, Fedora, and redhat as they either have /etc/redhat-release or /etc/fedora-release or both. For other distros you need to use other methods, but if they have the lsb packages installed you can just do `lsb_release -a `