Uname

Article on other languages:

del.icio.us del.icio.us
Digg Digg
Furl Furl
Reddit Reddit
Rojo Rojo
Add to OnlyWire

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.

The ver command found in operating systems such as DOS, OS/2 and Microsoft Windows is similar to the uname command.

Contents

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/Linux

Linux 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.[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, Octane2 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
HP-UX PA-RISC HP-UX illegal option 9000/800 illegal option 1854960616 U B.11.11

See also

Footnotes

  1. ^ 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

This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.


Giant Panda

Mercedes Car
James Bond Guide
This site monitored by SitePinger.net