Would anybody happen to know a list of unames for the most common operating systems?

For instance, FreeBSD, OpenBSD, NetBSD, Linux, Sun's Solaris, Macintosh, Windows?

link|improve this question
What is a uname? – joeqwerty Nov 15 '09 at 21:12
The uname command writes the name of the operating system implementation to standard output. When options are specified, strings representing one or more system characteristics are written to standard output. – TiFFolk Nov 15 '09 at 21:24
The command doesn't exist on all of the most common OSs listed by the OP, which renders the question quite meaningless. – mh. Nov 15 '09 at 21:41
@TiFFolk: Thanks for the explanation. – joeqwerty Nov 15 '09 at 22:12
@mh it exists on everything bar windows, so it's still a useful question – Cian Nov 15 '09 at 22:42
show 2 more comments
feedback

1 Answer

I can only add a few. Taking a look at config.guess from any autoconf'd source tree may reveal more possibilities.

  • NetBSD:
    • uname: NetBSD
    • uname -a: NetBSD (fqdn-hostname) 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #0: Fri Oct 23 05:52:43 UTC 2009 explorer@(fqdn-build-hostname):/usr/src/sys/arch/i386/compile/GENERIC i386
  • FreeBSD:
    • uname: FreeBSD
    • uanme -a: FreeBSD (fqdn-hostname) 6.3-RELEASE-p4 FreeBSD 6.3-RELEASE-p4 #1: Thu Sep 4 03:21:05 UTC 2008 (username)@(fqdn-build-hostname):/usr/obj/usr/src/sys/GENERIC i386
  • Linux:
    • uname: Linux
    • uname -a: Linux (hostname) 2.6.18-6-amd64 #1 SMP Tue May 5 08:01:28 UTC 2009 x86_64 GNU/Linux
  • OS-X:
    • uname: Dawrin
    • uname -a: Darwin (fqdn-hostname) 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386 i386
  • Solaris:
    • uname: SunOS
    • uname -a: SunOS (hostname) 5.10 Generic_120011-14 sun4u sparc SUNW,Ultra-80
  • Another Solaris:
    • uname: SunOS
    • uname -a: SunOS (hostname) 5.8 Generic_117350-53 sun4u sparc SUNW,Ultra-80 Solaris

Windows depends. If it's using Cygwin, then chances are it will return something starting with Cygwin.

In all cases, (fqdn-...) means "fully qualified domain name." (hostname) and (build-hostnames) are the hostname of the machine, and the host which compiled the kernel.

link|improve this answer
+1, troll through config.guess – Jim Zajkowski Nov 15 '09 at 23:40
feedback

Your Answer

 
or
required, but never shown