Uname: Difference between revisions
Jerryobject (talk | contribs) m →Examples: Correctly punctuated unprintworthy proper name. |
Undid revision 380855985 by Jerryobject The table records actual output. Not "what it should be". It is "x86_64" and not "x86-64" (talk) |
||
Line 66: | Line 66: | ||
| [[Linux]] |
| [[Linux]] |
||
| GNU/Linux |
| GNU/Linux |
||
| |
| x86_64 |
||
| |
| x86_64 |
||
| |
| x86_64 |
||
| #1 SMP 2007/09/21 22:29:00 UTC |
| #1 SMP 2007/09/21 22:29:00 UTC |
||
| 2.6.22.5-31-default |
| 2.6.22.5-31-default |
||
Line 75: | Line 75: | ||
| GNU/kFreeBSD |
| GNU/kFreeBSD |
||
| GNU/kFreeBSD |
| GNU/kFreeBSD |
||
| |
| x86_64 |
||
| amd64 |
| amd64 |
||
| AMD Sempron(tm) Processor 3000+ |
| AMD Sempron(tm) Processor 3000+ |
||
Line 120: | Line 120: | ||
| DragonFly |
| DragonFly |
||
| illegal option |
| illegal option |
||
| |
| x86_64 |
||
| |
| x86_64 |
||
| [filename of kernel conf file] |
| [filename of kernel conf file] |
||
| DragonFly v2.7.3.122.g0ba92-DEVELOPMENT #0: Tue June 8 16:50:35 CEST 2010 |
| DragonFly v2.7.3.122.g0ba92-DEVELOPMENT #0: Tue June 8 16:50:35 CEST 2010 |
||
| 2.7-DEVELOPMENT root@Chance.: /usr/obj/usr/src/sys/X86_64_GENERIC |
| 2.7-DEVELOPMENT root@Chance.: /usr/obj/usr/src/sys/X86_64_GENERIC |
||
Revision as of 16:52, 26 August 2010
uname (short for unix name) is a software program in Unix and Unix-like computer operating systems that prints the name, version and other details about the current machine and the operating system running on it. The uname system call and command appeared for the first time in PWB/UNIX.
Some Unix variants, such as AT&T UNIX System V Release 3.0 include the related setname program, used to change the values that uname reports.
The GNU version of uname is included in the "sh-utils" or "coreutils" packages. uname itself is not available as a standalone program.
Examples
On a system running Darwin, the output from running uname with the -a command line argument might look like the text below:
Darwin Roadrunner.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
The following table contains examples from various versions of uname
on various platforms.[1]
Operating system | OS or kernel name (-s) | OS name (-o) | Machine (-m) | Processor (-p) | Hardware platform (-i or -M) | OS or kernel version (-v) | OS or kernel release (-r) |
---|---|---|---|---|---|---|---|
Cygwin (Windows XP), Pentium 4 | CYGWIN_NT-5.1 | Cygwin | i686 | unknown | unknown | 2006-01-20 13:28 | 1.5.19(0.150/4/2) |
FreeBSD 6.1, Intel | FreeBSD | illegal option | i386 | i386 | [filename of kernel conf file] | FreeBSD 6.1-RELEASE-p15 #1: Sun Apr 15 18:04:51 EDT 2007 | 6.1-RELEASE-p15 |
IRIX 6.5.30, Origin 2000 | IRIX64 | illegal option | IP30 | mips | illegal option | 07202013 | 6.5 |
Solaris 9, Sun Fire 280R | SunOS | illegal option | sun4u | sparc | SUNW,Sun-Fire-280R | Generic_112233-08 | 5.9 |
openSUSE 10.3, Core2-duo 64-bit | Linux | GNU/Linux | x86_64 | x86_64 | x86_64 | #1 SMP 2007/09/21 22:29:00 UTC | 2.6.22.5-31-default |
Debian GNU/kFreeBSD 6.0, AMD | GNU/kFreeBSD | GNU/kFreeBSD | x86_64 | amd64 | AMD Sempron(tm) Processor 3000+ | #0 Thu Nov 26 04:22:59 CET 2009 | 8.0-1-amd64 |
Mac OS X Snow Leopard 10.6, Macbook (Late 2007) | Darwin | illegal option | i386 | i386 | illegal option | Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 | 10.0.0 |
Haiku R1/Alpha 1, QEMU | Haiku | Haiku | BePC | unknown | unknown | r33109 Sep 12 2009 17:45:45 | 1 |
IBM AIX 5.3 | AIX | AIX | 00C57D4D4C00 | powerpc | unknown | 5 | 3 |
MINIX 3.1.7, x86 | Minix | illegal option | i686 | i386 | illegal option | 1.7 | 3 |
DragonFlyBSD 2.7, AMD64 | DragonFly | illegal option | x86_64 | x86_64 | [filename of kernel conf file] | DragonFly v2.7.3.122.g0ba92-DEVELOPMENT #0: Tue June 8 16:50:35 CEST 2010 | 2.7-DEVELOPMENT root@Chance.: /usr/obj/usr/src/sys/X86_64_GENERIC |
See also
Footnotes
- ^ These are merely meant to broadly represent common systems; actual output may vary depending on hardware type, OS version, and which software patches have been installed.
External links
- The Single UNIX Specification, Version 4 from The Open Group – Shell and Utilities Reference,