Linux and Unix uname command
Quick links
About uname
Syntax
Examples
Related commands
Linux and Unix main page
Print name of current system.
uname [-a] [-i] [-m] [-n] [-p] [-r] [-s] [-v] [-X] [-S systemname]
| -a | Print basic information currently available from the system. |
| -i | Print the name of the hardware implementation (platform). |
| -m | Print the machine hardware name (class). Use of this option is discouraged; use uname -p instead. |
| -n | Print the nodename (the nodename is the name by which the system is known to a communications network). |
| -p | Print the current host's ISA or processor type. |
| -r | Print the operating system release level. |
| -s | Print the name of the operating system. This is the default. |
| -v | Print the operating system version. |
| -X | Print expanded system information, one information element per line, as expected by SCO Unix. The displayed information includes:
|
| -S systemname | The nodename may be changed by specifying a system name argument. The system name argument is restricted to SYS_NMLN characters. SYS_NMLN is an implementation specific value defined in <sys/utsname.h>. Only the super-user is allowed this capability. |
uname -arv
List the basic system information, OS release, and OS version as shown below.
SunOS hope 5.7 Generic_106541-08 sun4m sparc SUNW,SPARCstation-10
uname -p
Display the Linux platform.
