How to view the current system version in Linux: Uname-r
Function Description: uname is used to obtain information about computers and operating systems. Syntax: uname [-amnrsvpio] [-- help] [-- version] Note: The uname displays basic information such as the operating system version and hardware name used by the linux host. Parameters: -A or-all: output all information in detail, including kernel name, host name, kernel version number, kernel version, hardware name, processor type, hardware platform type, and operating system name. -M or-machine: displays the host's hardware (CPU) Name -N or-nodename: displays the host name or host name on the network node. -R or-release: displays the linux kernel version. -S or-sysname: display the Linux kernel name -V: displays the versions of the operating system. -P indicates the processor type or unknown. -I: displays the hardware platform type or unknown. -O: displays the operating system name. -Help for help information -Version: displays uname version information. Uname usage example: [Root @ localhost ~] # Uname Linux Note: When you use the uname command separately, it is equivalent to uname-s. [Root @ localhost ~] # Uname- Linux localhost 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux [Root @ localhost ~] # Uname-m I686 [Root @ localhost ~] # Uname-n Localhost [Root @ localhost ~] # Uname-r 2.6.18-4-686 [Root @ localhost ~] # Uname-s Linux [Root @ localhost ~] # Uname-v #1 SMP Mon Mar 26 17:17:36 UTC 2007 [Root @ localhost ~] # Uname-p I686 [Root @ localhost ~] # Uname-I I386 [Root @ localhost ~] # Uname-o GNU/Linux [Root @ localhost ~] # Uname-version Uname (GNU coreutils) 5.97 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms The GNU General Public licensing There is no warranty, to the extent permitted by law. |