uname command - Linux and Unix
by Sanju[ Edit ] 2012-07-17 18:39:24
uname command - Linux and Unix
Syntax
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:
> system name, node, release, version, machine, and number of CPUs.
> BusType, Serial, and Users (set to "unknown" in Solaris)
> OEM# and Origin# (set to 0 and 1, respectively)
-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 . Only the super-user is
allowed this capability.