Uname
Appearance
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.
Examples
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
This is the result with the -a
option set.
The GNU implementation
Here are more examples from the GNU implementation of uname
.
Operating System | -s |
-o |
-m |
-p |
-i |
---|---|---|---|---|---|
Linux (Red Hat), Pentium 4 | Linux | GNU/Linux | i686 | i686 | i386 |
Cygwin (Windows XP), Pentium 4 | CYGWIN_NT-5.1 | Cygwin | i686 | unknown | unknown |