<linux System uname Command usage >

Source: Internet
Author: User

uname command: Display of operating System information

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

It has the following main parameters:

-A Show All information

-S Display kernel name

-N Display host name

-R Displays the kernel version of the current system

-m display the hardware name of the host

-P Displays the type of processor

-I display the hardware platform of the host

-O Displays the name of the operating system you are using

Let's take a look at the following:

[Email protected] ~]# uname-a
Linux redhat.example.com 2.6.32-279.el6.i686 #1 SMP Wed June 18:23:32 EDT i686 i686 i386 gnu/linux

[Email protected] ~]# uname-s
Linux

[Email protected] ~]# uname-n
Redhat.example.com

[Email protected] ~]# uname-r
2.6.32-279.el6.i686

[Email protected] ~]# uname-m
i686

[Email protected] ~]# uname-p
i686

[Email protected] ~]# uname-i
I386

[Email protected] ~]# Uname-o
Gnu/linux

The following is an extension:

[[email protected] ~]# getconf long_bit //view current system is 32-bit
32

[[email protected] ~]# 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 use the following methods to view:

[[email protected] ~]# 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.