Linux and Unix uname command

uname commandAbout uname
uname syntax
uname examples
Related commands
Linux and Unix main page

About uname

Print information about the current system.

Description

Print certain system information. If no OPTION is specified, uname assumes the -s option.

uname syntax

uname [OPTION]...

Options

-a, --all Prints all information, omitting -p and -i if the information is unknown.

If -a (--all) is specified, the information is printed in the following order of individual options:

-s, --kernel-name Print the kernel name.
-n, --nodename Print the network node hostname.
-r, --kernel-release Print the kernel release.
-v, --kernel-version Print the kernel version.
-m, --machine Print the machine hardware name.
-p, --processor Print the processor type, or "unknown".
-i, --hardware-platform Print the hardware platform, or "unknown".
-o, --operating-system Print the operating system.
--help Display a help message, and exit.
--version Display version information, and exit.

uname examples

uname -a

Displays system information. Output will resemble the following:

SunOS hope 5.7 Generic_106541-08 sun4m sparc SUNW,SPARCstation-10

arch — Display the architecture of the system.
isalist — Display the native instruction sets available on a Solaris system.
modprobe — Add and remove modules from the Linux kernel.