In Linux, how does one view the current system version? in linux, how does one view the current version?

Source: Internet
Author: User

In Linux, how does one view the current system version? in linux, how does one view the current version?

 

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.