General Question

segdeha's avatar

Unix command to show distro info?

Asked by segdeha (1720points) February 22nd, 2008

I had a look around the interwebs but I don’t see an answer to my question. Is there a Unix command that will show you the operating system details (e.g., Red Hat, Ubuntu, version numbers, etc.)?

Observing members: 0 Composing members: 0

6 Answers

jrpowell's avatar

uname -a might do the trick. This is the output on my Mac.

Macintosh:~ ****************$ uname -a
Darwin Macintosh.local 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5 16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386 i386

jrpowell's avatar

Damn.. I just checked that on a Ubuntu server in my closet.. It didn’t tell the distro, just that it was GNU/Linux.

Sorry about that.

edit:
cat /etc/issue
works on my Ubuntu box..

segdeha's avatar

Yep, same. GNU/Linux. I managed to find out through other means that it’s a Debian box, but I still don’t know what version.

robmandu's avatar

seen mention of prtdiag for Solaris and RedHat.

segdeha's avatar

-bash: prtdiag: command not found

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther