How to view the current system version under Linux: Uname-r
Function Description: Uname is used to obtain information about the computer and the operating system. Syntax: uname [-amnrsvpio][--help][--version] Supplemental Note: uname can display basic information such as the version of the operating system used by the Linux host, the name of the hardware. Parameters -A or –all verbose output all information, followed by kernel name, hostname, kernel version number, kernel version, hardware name, processor type, hardware platform type, operating system name -M or –machine displays the hardware (CPU) name of the host -N or-nodename displays the name or host name of the host on the network node -R or –release display Linux OS kernel version number -S or –sysname displays the Linux kernel name -V display shows the version of the operating system -P display processor type or unknown -I display hardware platform type or unknown -O Display Operating system name Help Get Help information –version Display uname version information Uname Use Example: [Email protected] ~]# uname Linux Note: Using the uname command alone is equivalent to Uname-s [Email protected] ~]# uname-a Linux localhost 2.6.18-4-686 #1 SMP Mon Mar 17:17:36 UTC i686 gnu/linux [Email protected] ~]# uname-m i686 [Email protected] ~]# uname-n localhost [Email protected] ~]# uname-r 2.6.18-4-686 [Email protected] ~]# uname-s Linux [Email protected] ~]# uname-v #1 SMP Mon Mar 17:17:36 UTC 2007 [Email protected] ~]# uname-p i686 [Email protected] ~]# uname-i I386 [Email protected] ~]# Uname-o Gnu/linux [Email protected] ~]# uname–version Uname (GNU coreutils) 5.97 Copyright (C) 2006 free Software Foundation, Inc. This is the free software. Redistribute copies of it under the terms of The GNU general public License There is NO WARRANTY, to the extent permitted by law. |