Command for viewing CPU cores and other parameters in Linux

Source: Internet
Author: User

# Uname-

Linux euis1 2.6.9-55. elsmp #1 SMP Fri APR 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

(View the kernel information of the current operating system)

 

# Cat/etc/issue | grep Linux

Red Hat Enterprise Linux as Release 4 (nahant Update 5)

(View the released version of the current operating system)

 

# Cat/proc/cpuinfo | grep name | cut-F2-D: | uniq-C

8 Intel (r) Xeon (r) CPU e5410 @ 2.33 GHz

(We can see eight logical CPUs and the CPU model)

# Cat/proc/cpuinfo | grep physical | uniq-C

4 physical ID: 0

4 physical ID: 1

(It means two 4-core CPUs)

# Getconf long_bit

32

(This indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit)

 
# Cat/proc/cpuinfo | grep flags | grep 'lm '| WC-l

8

(If the result is greater than 0, 64bit computing is supported. lm indicates long mode, and Lm indicates 64bit)

==========================================================

 

View the Linux system version and the number of digits

 

1. view the kernel version

[Oracle @ svr15 ~] $ CAT/etc/issue
Red Hat Enterprise Linux as Release 4 (nahant)
Kernel/r on an/m

[Oracle @ svr15 ~] $ CAT/proc/version
Linux version 2.6.9-5. elsmp (bhcompile@decompose.build.redhat.com) (GCC version 3.4.3 20041212 (Red Hat 3.4.3-9. EL4) #1 SMP wed Jan 5 19:30:39 est 2005

[Oracle @ svr15 ~] $ Uname-R
2.6.9-5. elsmp

 

2. view the number of operating system digits
[Oracle @ svr15 ~] $ Ls/# If there is lib64 or this directory, the operating system is 64-bit
Bin boot Dev etc home initrd lib lost + found media misc mnt opt proc root sbin SELinux SRV sys tmp usr VaR

[Oracle @ svr15 ~] $ Getconf long_bit
32

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.