& Lt; Linux uname command usage & gt;

Source: Internet
Author: User

Uname command: displays operating system information

The uname command is used to display information about the operating system, including version and platform.

Its parameters mainly include:

-A: All information is displayed.

-S: display the kernel name

-N: display the Host Name

-R: displays the kernel version of the current system.

-M: displays the host hardware name.

-P: display the processor type

-I: displays the hardware platform of the host.

-O: displays the name of the operating system used.

 

Let's take a look:

 

 

[Root @ redhat ~] # Uname-
Linux redhat.example.com 2.6.32-279. el6.i686 #1 SMP Wed Jun 13 18:23:32 EDT 2012 i686 i686 i386 GNU/Linux

 

[Root @ redhat ~] # Uname-s
Linux

 

 

[Root @ redhat ~] # Uname-n
Redhat.example.com

 

[Root @ redhat ~] # Uname-r
2.6.32-279. el6.i686

 

[Root @ redhat ~] # Uname-m
I686

 

 

[Root @ redhat ~] # Uname-p
I686

 

[Root @ redhat ~] # Uname-I
I386

 

[Root @ redhat ~] # Uname-o
GNU/Linux

The following are extensions:

[Root @ redhat ~] # Getconf LONG_BIT // check that the current system is 32-bit
32

[Root @ redhat ~] # Cat/etc/issue // view the current system type
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Kernel \ r on an \ m

 

You can also view it using the following method:

[Root @ redhat ~] # Cat/etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)

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.