Tuesday, November 27, 2007

UNIX - uname : print name of current system

`uname` - Print certain system information. With no OPTION, same as -s.


Usage
uname [OPTION]


DESCRIPTION
The uname utility prints information about the current system on the standard output. When options are specified, symbols representing one or more system characteristics will be written to the standard output. If no options are specified, uname prints the current operating system's name. The options print selected information returned by uname(2), sysinfo(2), or both.

OPTION
-a, --all print all information, in the following order:
-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
-i, --hardware-platform print the hardware platform
-o, --operating-system print the operating system
--help display this help and exit
--version output version information and exit


EXAMPLE

[root@server root]# uname -a
Linux admincmd.blogspot.com 2.4.21-4.ELsmp #1 SMP Fri Nov 14 12:52:56 EDT 2002 i686 i686 i386 GNU/Linux


.

No comments: