Uname
Encyclopedia
uname is a software program in Unix
and Unix-like
computer operating 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 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 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
Unix
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna...
and Unix-like
Unix-like
A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....
computer operating system
Operating system
An operating system is a set of programs that manage computer hardware resources and provide common services for application software. The operating system is the most important type of system software in a computer 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 in PWB/UNIX
PWB/UNIX
The Programmer's Workbench was an early version of the Unix operating system created in the Bell Labs Computer Science Research Group of AT&T....
.
Some Unix variants, such as AT&T
AT&T
AT&T Inc. is an American multinational telecommunications corporation headquartered in Whitacre Tower, Dallas, Texas, United States. It is the largest provider of mobile telephony and fixed telephony in the United States, and is also a provider of broadband and subscription television services...
UNIX System V
UNIX System V
Unix System V, commonly abbreviated SysV , is one of the first commercial versions of the Unix operating system. It was originally developed by American Telephone & Telegraph and first released in 1983. Four major versions of System V were released, termed Releases 1, 2, 3 and 4...
Release 3.0 include the related setname program, used to change the values that uname reports.
The GNU
GNU
GNU is a Unix-like computer operating system developed by the GNU project, ultimately aiming to be a "complete Unix-compatible software system"...
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 DarwinDarwin (operating system)
Darwin is an open source POSIX-compliant computer operating system released by Apple Inc. in 2000. It is composed of code developed by Apple, as well as code derived from NeXTSTEP, BSD, and other free software projects....
, 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.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 Cygwin Cygwin is a Unix-like environment and command-line interface for Microsoft Windows. Cygwin provides native integration of Windows-based applications, data, and other system resources with applications, software tools, and data of the Unix-like environment... (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 FreeBSD FreeBSD is a free Unix-like operating system descended from AT&T UNIX via BSD UNIX. Although for legal reasons FreeBSD cannot be called “UNIX”, as the direct descendant of BSD UNIX , FreeBSD’s internals and system APIs are UNIX-compliant... 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 |
FreeBSD FreeBSD FreeBSD is a free Unix-like operating system descended from AT&T UNIX via BSD UNIX. Although for legal reasons FreeBSD cannot be called “UNIX”, as the direct descendant of BSD UNIX , FreeBSD’s internals and system APIs are UNIX-compliant... 9.0-BETA1, Intel |
FreeBSD | FreeBSD | amd64 | amd64 | [filename of kernel conf file] | FreeBSD 9.0-BETA1 #90 r225136: Wed Aug 24 12:12:18 CEST 2011 | 9.0-BETA1 |
IRIX IRIX IRIX is a computer operating system developed by Silicon Graphics, Inc. to run natively on their 32- and 64-bit MIPS architecture workstations and servers. It was based on UNIX System V with BSD extensions. IRIX was the first operating system to include the XFS file system.The last major version... 6.5.30, Origin 2000 |
IRIX64 | illegal option | IP30 | mips | illegal option | 07202013 | 6.5 |
Solaris 9, Sun Fire 280R | SunOS SunOS SunOS is a version of the Unix operating system developed by Sun Microsystems for their workstation and server computer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4 of SunOS... |
illegal option | sun4u | sparc | SUNW,Sun-Fire-280R | Generic_112233-08 | 5.9 |
Solaris 10, Sun Fire V490 | SunOS SunOS SunOS is a version of the Unix operating system developed by Sun Microsystems for their workstation and server computer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4 of SunOS... |
Solaris | sun4u | sparc | SUNW,Sun-Fire-V490 | Generic_142900-13 | 5.10 |
openSUSE OpenSUSE openSUSE is a general purpose operating system built on top of the Linux kernel, developed by the community-supported openSUSE Project and sponsored by SUSE... 10.3, Core2-duo 64-bit |
Linux Linux Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds... |
GNU/Linux | x86_64 | x86_64 | x86_64 | #1 SMP 2007/09/21 22:29:00 UTC | 2.6.22.5-31-default |
Gentoo, UltraSparc IIe | Linux Linux Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds... |
GNU/Linux | sparc64 | sun4u | TI UltraSparc IIe (Hummingbird) | #1 SMP Wed Nov 10 02:04:26 CET 2010 | 2.6.34-gentoo-r12 |
Linux Mint Linux Mint Linux Mint is a Linux-based computer operating system best known for its usability and ease of installation, particularly for users with no previous GNU/Linux experience... 10 "Julia" 64-bit |
Linux Linux Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds... |
GNU/Linux | x86_64 | unknown | unknown | #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010 | 2.6.35-22-generic |
Debian GNU/kFreeBSD Debian GNU/kFreeBSD Debian GNU/kFreeBSD is an operating system released by the Debian project. It uses the kernel of FreeBSD combined with a GNU based userland. The majority of software in Debian GNU/kFreeBSD is built from the same sources as Debian GNU/Linux. The k in kFreeBSD refers to the fact that only the kernel... 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 Darwin (operating system) Darwin is an open source POSIX-compliant computer operating system released by Apple Inc. in 2000. It is composed of code developed by Apple, as well as code derived from NeXTSTEP, BSD, and other free software projects.... |
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 Haiku (operating system) Haiku is a free and open source operating system compatible with BeOS. Its development began in 2001, and the operating system became self-hosting in 2008, with the first alpha release in September 2009, the second in May 2010 and the third in June 2011.... R1/Alpha 1, QEMU |
Haiku Haiku (operating system) Haiku is a free and open source operating system compatible with BeOS. Its development began in 2001, and the operating system became self-hosting in 2008, with the first alpha release in September 2009, the second in May 2010 and the third in June 2011.... |
Haiku | BePC | unknown | unknown | r33109 Sep 12 2009 17:45:45 | 1 |
IBM AIX 5.3 | AIX | AIX | 00C57D4D4C00 | powerpc | unknown | 5 | 3 |
MINIX MINIX 3 MINIX 3 is a project to create a small, highly reliable and functional Unix-like operating system. It is published under the BSD license.The main goal of the project is for the system to be fault-tolerant by detecting and repairing its own faults on the fly, without user intervention... 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 |
Ubuntu 11.04 | Linux | GNU/Linux | x86_64 | x86_64 | x86_64 | #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 | 2.6.38-10-generic |