UNAME ( 1 ) USER COMMANDSUNAME ( 1 )


NAME

uname - identify the current system

SYNOPSIS

uname [ options ] [ name ... ]

DESCRIPTION

By default uname writes the operating system name to standard output. When options are specified, one or more system characteristics are written to standard output, space separated, on a single line. When more than one option is specified the output is in the order specfied by the -A option below. Unsupported option values are listed as [option]. If any unknown options are specified then the local /usr/bin/uname is called.

If any name operands are specified then the sysinfo(2) values for each name are listed, separated by space, on one line. getconf(1), a pre-existing standard interface, provides access to the same information; vendors should spend more time using standards than inventing them.

Selected information is printed in the same order as the options below.

OPTIONS

-a, --all

Equivalent to -snrvmpio.
-s, --system|sysname|kernel-name

The detailed kernel name. This is the default.
-n, --nodename

The hostname or nodename.
-r, --release|kernel-release

The kernel release level.
-v, --version|kernel-version

The kernel version level.
-m, --machine

The name of the hardware type the system is running on.
-p, --processor

The name of the processor instruction set architecture.
-i, --implementation|platform|hardware-platform

The hardware implementation; this is --host-id on some systems.
-o, --operating-system

The generic operating system name.
-h, --host-id|id

The host id in hex.
-d, --domain

The domain name returned by getdomainname(2).
-R, --extended-release

The extended release name.
-A, --everything

Equivalent to -snrvmpiohdR.
-f, --list

List all sysinfo(2) names and values, one per line.
-S, --sethost=name

Set the hostname or nodename to name. No output is written to standard output.

SEE ALSO

hostname(1), getconf(1), uname(2), sysconf(2), sysinfo(2)

IMPLEMENTATION

version

uname (AT&T Research) 2007-04-19
author

Glenn Fowler <glenn.s.fowler@gmail.com>
author

David Korn <dgkorn@gmail.com>
copyright

Copyright © 1992-2012 AT&T Intellectual Property
license

http://www.eclipse.org/org/documents/epl-v10.html