Uname
From Free net encyclopedia
(Difference between revisions)
Current revision
In computer software, uname is a program in Unix operating systems that prints the name, version and other details about the running operating system. It is useful for building software from source, when certain parameters depend on the host operating system.
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.
In GNU systems, uname is included in the "sh-utils" or "coreutils" packages. uname itself is not available as a standalone program.
[edit]
Examples
This is the result with the -a
option set.
Darwin Takuya-Muratas-Computer.local. 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh powerpc
Here is a table of examples from various versions of uname
.
Operating System | -s Kernel or System Name |
-o OS |
-m Machine |
-p Processor |
-i Hardware Platform |
-v Kernel Version |
-r Kernel Release |
---|---|---|---|---|---|---|---|
Linux (Red Hat), Pentium 4 | Linux | GNU/Linux | i686 | i686 | i386 | #1 Sat Jul 23 07:47 UTC 2005 | 2.4.21-297-default |
Linux (Red Hat, Fedora core 5), Pentium 4 | Linux | GNU/Linux | i686 | i686 | i386 | #1 SMP Tue Mar 28 03:55:15 EST 2006 | 2.6.16-1.2080_FC5smp |
Cygwin (Windows XP), Pentium 4 | CYGWIN_NT-5.1 | Cygwin | i686 | unknown | unknown | ||
Cygwin (Windows 2000), AMD Athlon | CYGWIN_NT-5.0 | Cygwin | i686 | unknown | unknown | 2006-01-20 13:28 | 1.5.19(0.150/4/2) |
Solaris 9, Ultra 5 | SunOS | sun4u | sparc | SUNW,Ultra-5_10 | |||
AIX | aix6 | 000931784C00 | powerpc | 5 | 1 | ||
Mac OS X | Darwin | Power Macintosh | powerpc | Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC | 6.8 |
[edit]
See also
[edit]