1. Usually, we can use command 'uname'
[~~]$uname -a
Linux nightstone 2.6.18-8.el5xen #1 SMP Fri Jan 26 14:42:21 EST 2007 i686 i686 i386 GNU/Linux
The meaning of every value as following:
-s, --kernel-name [ Linux]
print the kernel name
-n, --nodename [ nightstone ]
print the network node hostname
-r, --kernel-release [2.6.18-8.el5xen]
print the kernel release
-v, --kernel-version [#1 SMP Fri Jan 26 14:42:21 EST 2007]
print the kernel version
-m, --machine [i686]
print the machine hardware name
-p, --processor [i686]
print the processor type or "unknown"
-i, --hardware-platform [i386]
print the hardware platform or "unknown"
-o, --operating-system [GNU/Linux]
print the operating system
--help display this help and exit
--version
output version information and exit
2. Get the OS verion
[~~]$ cat /etc/issue*
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel \r on an \m
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel \r on an \m




