Unix command to show distro info?
Asked by
segdeha (
1720)
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
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
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..
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.
seen mention of prtdiag for Solaris and RedHat.
-bash: prtdiag: command not found
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.