Name
uname
Synopsis
uname [options
]
Print the current Unix system name.
Common Options
-a
,--all
Report the information supplied by all the other options.
-m
,--machine
The hardware name.
-n
,--nodename
The node name.
-p
,--processor
The host’s processor type.
-r
,--kernel-release
The operating system release.
-s
,--kernel-name
The system name. This is the default action when no options are provided.
-v
,--kernel-version
The operating system version.
Solaris and GNU/Linux Option
-i
,--hardware-platform
The hardware platform name. (For example on Solaris,
SUNW,Ultra-4
; compare tosparc
from-p
.)
Solaris Options
-
-S
name
Change the nodename to name. Privileged users only.
-
-X
Print expanded information as expected by SCO Unix systems.
GNU/Linux Option
-o
,--operating-system
Print the operating system name.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.