- Uname
uname (short for "unix name") is a
software program inUnix andUnix-like computeroperating system s 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 inPWB/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.The ver command found in operating systems such as
DOS ,OS/2 andMicrosoft Windows is similar to the uname command.Examples
The output from running uname with the -a
command line argument might look like the text below:On a system running Darwin
Darwin hostname 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
On a system running
GNU /LinuxLinux hostname 2.6.24-19-server #1 SMP Sat Jul 12 00:40:01 UTC 2008 i686 GNU/Linux
The following table contains examples from various versions of
uname
on various platforms. [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.]See also
*
List of Unix programs Footnotes
External links
*man|1|uname|Linux
Wikimedia Foundation. 2010.