In Linux, check the number of machines. in Linux, check the number of machines.

Source: Internet
Author: User

In Linux, check the number of machines. in Linux, check the number of machines.

Command:

File/bin/ls

Example:

As shown above, my machine is 32-bit.


How does one view the linux version?

Check whether the linux machine is 32-bit or 64-bit: file/sbin/init or file/bin/ls/sbin/init: ELF64-bitLSB executable, x86-64, version 1 (SYSV ), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped 64-bit if displayed; file/sbin/init: ELF32-bitLSB executable, intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped is 32bit if displayed as 32 bit; uname-: uname-aLinux pmx00 2 **. **. ** 2.6.32-71. el6.x86 _ 64 #1 SMP Wed Sep 1 01:33:01 EDT 2010x86_64x86_64 x86_64 GNU/Linuxx86_64 indicates the 64-bit host uname-aLinux pmx0 **. **. ** 2.6.9-5. ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005i686i686 i386 GNU/Linuxi686 indicates that the 32-bit i686 is only a subset of i386, and the supported cpu starts from Pentium 2 (686, the previous model is not supported. note: 1. i386 is applicable to all 32-bit CPUs of intel and AMD. and 32 CPUs in X86 architecture. intel Platform includes 8086, 80286, 80386, 80133, Pentium series (1.2.3.4), sai Yang series, Pentium D series and centrino P-M, cor E duo, etc. 2. x86_64 is applicable to intel's Core 2 Duo, Centrino Core 2 Duo, and Xeon, AMD Athlon64/x2, Sempron64/x2, Duron64, and other 64-bit cpu.3. PPC with X86 architecture is suitable for Apple Macintosh G3, g4, G5, PowerBook, and other non-Intel models install more software than the installation disc. The installation DVD also includes two graphical interfaces (KDE and gnome ). 4. jigdo can also download the ora release through Jigdo. Jigdo can accelerate the download of the ISO image of the installation disk. Unlike the BT download wait task, Jidgo automatically locates the fastest backup storage (using the Fedora image manager) and downloads the required files from it. To reduce the required network traffic, Jigdo can scan existing DVD or CD media. This feature is particularly useful to the following users. Getconf LONG_BIT: run the following command on 32-bit and 64-bit machines:

[Linux] Check whether the machine has several CPUs and supports 64-bit

1. view the number of physical CPUs
# Cat/proc/cpuinfo | grep "physical id" | sort | uniq | wc-l
2. view the number of logical CPUs
# Cat/proc/cpuinfo | grep "processor" | wc-l
3. Check the CPU Cores
# Cat/proc/cpuinfo | grep "cores" | uniq
4. view the CPU clock speed
# Cat/proc/cpuinfo | grep MHz | uniq # uname-aLinux 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 information about the current operating system release) # cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c8Intel (R) Xeon (R) CPU E5410 @ 2.33 GHz
(We can see eight logical CPUs and the CPU model.) # cat/proc/cpuinfo | grep physical | uniq-c4physical id: 04 physical id: 1
(Actually two 4-core CPUs) # getconf LONG_BIT32 (indicating 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-l8 (the result is greater than 0, indicating 64bit computing is supported. lm indicates long mode, and 64 bit for lm)

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.