CentOS Linux System Information - Obtaining System Information


uname

  • used to show information about kernel version, hardware, hostname and OS version
Synopsis

uname [option]


Option
Below are the common options used together with uname
 
options description
-a, --all print all the information below
-s, --kernel-name print the kernel name
-n, --nodename print the network node hostname
-r, --kernel-release print the kernel release
-i, --hardware-platform print the hardware platform
-o, --operating-system print the operating system

Example
 
uname -n
centos4.example.local
 
uname -s
Linux
 

uname -r
2.6.9-42.ELsmp
 

uname -i
i386
 

uname -o
GNU/Linux
 

# uname -a
Linux centos4.example.local 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 i386 GNU/Linux