Welcome to WebmasterWorld Guest from 62.210.77.51

Forum Moderators: bakedjake

Message Too Old, No Replies

terminal command ... What is my current linux distribution

     
3:58 am on Jun 1, 2005 (gmt 0)

New User

10+ Year Member

joined:Oct 29, 2004
posts:31
votes: 0


All right fellas, I am not COMPLETELY new to Linux, but I consider myself still a newbie. I know there is a simple terminal command that will tell me what distribution I am running. I simply cannot remember the command name. Can you help me out?

This particular command will display several things about the platform, environment, distribution etc. I only really need to know the command name, and then i can of course look at the man page for further info on switches etc.

Thanks,
bubone2

4:13 am on June 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 18, 2003
posts:1929
votes: 0


uname -a
4:40 am on June 1, 2005 (gmt 0)

New User

10+ Year Member

joined:Oct 29, 2004
posts:31
votes: 0


Thank you. That is exactly what I was looking for.

However, it only told me that it was Linux, nothingf about the distribution. It did tell me some other little things (since the switch you provided me was --all), but I still don't know what distro it is. The situation is that I am trying to find out what distro my webhost is running.

Can you advise me of possibly another way to determine what I am dealing with? For instance, does Red Hat have certain characteristics that other distros don't that can be discerned from the terminal? Or ... I know distros built from debian have a slightly different directory/partition structure. Are there any small unique characteristics like this that might give a particular distro away?

I'm only looking for clues on the 2-3 most common ones. I hope that I am making sense and making clear what I am looking for.

Thanks again,
bubone2

5:57 am on June 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 18, 2003
posts:1929
votes: 0


Here is a list of files that could identify your distro.

Novell SuSE
/etc/SuSE-release

Red Hat
/etc/redhat-release, /etc/redhat_version

Fedora
/etc/fedora-release

Slackware
/etc/slackware-release, /etc/slackware-version

Debian
/etc/debian_release, /etc/debian_version,

Mandrake
/etc/mandrake-release

Yellow dog
/etc/yellowdog-release

Sun JDS
/etc/sun-release

Solaris/Sparc
/etc/release

Gentoo
/etc/gentoo-release

7:12 am on June 1, 2005 (gmt 0)

New User

10+ Year Member

joined:Oct 29, 2004
posts:31
votes: 0


Wow thanks again Moltar!
8:27 am on June 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 27, 2001
posts:784
votes: 0


Which makes me wonder -- why isn't there something like a standard /etc/release file? There should be some straightforward way to determine the *nix/Linux version one is using, that doesn't involve checking an unknown number of files.
4:05 pm on June 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 0


cat /etc/issue

Always worked for me.