coreutils: uname invocation
1
1 21.4 ‘uname’: Print system information
1 ======================================
1
1 ‘uname’ prints information about the machine and operating system it is
1 run on. If no options are given, ‘uname’ acts as if the ‘-s’ option
1 were given. Synopsis:
1
1 uname [OPTION]...
1
1 If multiple options or ‘-a’ are given, the selected information is
1 printed in this order:
1
1 KERNEL-NAME NODENAME KERNEL-RELEASE KERNEL-VERSION
1 MACHINE PROCESSOR HARDWARE-PLATFORM OPERATING-SYSTEM
1
1 The information may contain internal spaces, so such output cannot be
1 parsed reliably. In the following example, RELEASE is
1 ‘2.2.18ss.e820-bda652a #4 SMP Tue Jun 5 11:24:08 PDT 2001’:
1
1 uname -a
1 ⇒ Linux dumdum 2.2.18 #4 SMP Tue Jun 5 11:24:08 PDT 2001 i686 unknown unknown GNU/Linux
1
11 The program accepts the following options. Also see ⇒Common
options.
1
1 ‘-a’
1 ‘--all’
1 Print all of the below information, except omit the processor type
1 and the hardware platform name if they are unknown.
1
1 ‘-i’
1 ‘--hardware-platform’
1 Print the hardware platform name (sometimes called the hardware
1 implementation). Print ‘unknown’ if this information is not
1 available. Note this is non-portable (even across GNU/Linux
1 distributions).
1
1 ‘-m’
1 ‘--machine’
1 Print the machine hardware name (sometimes called the hardware
1 class or hardware type).
1
1 ‘-n’
1 ‘--nodename’
1 Print the network node hostname.
1
1 ‘-p’
1 ‘--processor’
1 Print the processor type (sometimes called the instruction set
1 architecture or ISA). Print ‘unknown’ if this information is not
1 available. Note this is non-portable (even across GNU/Linux
1 distributions).
1
1 ‘-o’
1 ‘--operating-system’
1 Print the name of the operating system.
1
1 ‘-r’
1 ‘--kernel-release’
1 Print the kernel release.
1
1 ‘-s’
1 ‘--kernel-name’
1 conformance::) calls this “the implementation of the operating
1 system”, because the POSIX specification itself has no notion of
1 “kernel”. The kernel name might be the same as the operating
1 system name printed by the ‘-o’ or ‘--operating-system’ option, but
1 it might differ. Some operating systems (e.g., FreeBSD, HP-UX)
1 have the same name as their underlying kernels; others (e.g.,
1 GNU/Linux, Solaris) do not.
1
1 ‘-v’
1 ‘--kernel-version’
1 Print the kernel version.
1
1 An exit status of zero indicates success, and a nonzero value
1 indicates failure.
1