Linux Command for viewing kernel, cpu, mem, gcc, and libc Information

Source: Internet
Author: User
Linux Command for viewing kernel, cpu, mem, gcc, and libc information-Linux general technology-Linux technology and application information. Run the following command to view the system kernel version:

Uname-

More/etc/* release
More/etc/redhat-release

More/proc/version

[Root @ localhost ~] # Uname-

Linux localhost. localdomain 2.6.9-22. ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

[Root @ localhost ~] # More/etc/* release

Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

[Root @ localhost ~] # More/etc/redhat-release

Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

[Root @ localhost ~] # More/etc/issue

Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

Kernel \ r on an \ m



[Root @ localhost ~] # More/proc/version

Linux version 2.6.9-22. ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2) #1 SMP Mon Se

P 19 18:00:54 EDT 2005



View cpu Information

Grep "model name"/proc/cpuinfo



[Root @ localhost ~] # Grep "model name"/proc/cpuinfo

Model name: Dual-Core AMD Opteron (tm) Processor 2216

Model name: Dual-Core AMD Opteron (tm) Processor 2216

Model name: Dual-Core AMD Opteron (tm) Processor 2216

Model name: Dual-Core AMD Opteron (tm) Processor 2216

[Root @ localhost ~] # More/proc/cpuinfo

Processor: 0

Vendor_id: AuthenticAMD

Cpu family: 15

Model: 65

Model name: Dual-Core AMD Opteron (tm) Processor 2216

Stepping: 2

Cpu MHz: 2412.409

Cache size: 1024 KB

Physical id: 0

Siblings: 2

Core id: 0

Cpu cores: 2

Fpu: yes

Fpu_exception: yes

Cpuid level: 1

Wp: yes

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush mmx fxsr sse sse2 ht sysca

Ll nx mmxext lm 3 dnowext 3 dnow pni cx16 ts fid vid ttp Fen + 3

Bogomips: 4849.66

TLB size: 1088 4 K pages

Clflush size: 64

Cache_alignment: 64

Address sizes: 40 bits physical, 48 bits virtual

Power management: ts fid vid ttp [4] [5]



Processor: 1

Vendor_id: AuthenticAMD

Cpu family: 15

Model: 65

Model name: Dual-Core AMD Opteron (tm) Processor 2216

Stepping: 2

Cpu MHz: 2412.409

Cache size: 1024 KB

Physical id: 0

Siblings: 2

Core id: 1

Cpu cores: 2

Fpu: yes

Fpu_exception: yes

Cpuid level: 1

Wp: yes

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush mmx fxsr sse sse2 ht sysca

Ll nx mmxext lm 3 dnowext 3 dnow pni cx16 ts fid vid ttp Fen + 3

Bogomips: 4816.89

TLB size: 1088 4 K pages

Clflush size: 64

Cache_alignment: 64

Address sizes: 40 bits physical, 48 bits virtual

Power management: ts fid vid ttp [4] [5]



Processor: 2

Vendor_id: AuthenticAMD

Cpu family: 15

Model: 65

Model name: Dual-Core AMD Opteron (tm) Processor 2216

Stepping: 2

Cpu MHz: 2412.409

Cache size: 1024 KB

Physical id: 1

Siblings: 2

Core id: 2

Cpu cores: 2

Fpu: yes

Fpu_exception: yes

Cpuid level: 1

Wp: yes

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush mmx fxsr sse sse2 ht sysca

Ll nx mmxext lm 3 dnowext 3 dnow pni cx16 ts fid vid ttp Fen + 3

Bogomips: 4816.89

TLB size: 1088 4 K pages

Clflush size: 64

Cache_alignment: 64

Address sizes: 40 bits physical, 48 bits virtual

Power management: ts fid vid ttp [4] [5]



Processor: 3

Vendor_id: AuthenticAMD

Cpu family: 15

Model: 65

Model name: Dual-Core AMD Opteron (tm) Processor 2216

Stepping: 2

Cpu MHz: 2412.409

Cache size: 1024 KB

Physical id: 1

Siblings: 2

Core id: 3

Cpu cores: 2

Fpu: yes

Fpu_exception: yes

Cpuid level: 1

Wp: yes

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush mmx fxsr sse sse2 ht sysca

Ll nx mmxext lm 3 dnowext 3 dnow pni cx16 ts fid vid ttp Fen + 3

Bogomips: 4816.89

TLB size: 1088 4 K pages

Clflush size: 64

Cache_alignment: 64

Address sizes: 40 bits physical, 48 bits virtual

Power management: ts fid vid ttp [4] [5]





View the number of CPUs

Getconf LONG_BIT



[Root @ localhost ~] # Getconf LONG_BIT

64

[Root @ localhost ~] # Ls/

Bin dev home lib lost + found misc opt root selinux sys tftpboot update usr

Boot etc initrd lib64 media mnt proc sbin srv test tmp updates var

If the ls folder in root contains lib64, the system 64



View libc and gcc versions

Ldd/sbin/mii-tool

Rpm-qa | grep glibc

Gcc? Version



[Root @ localhost ~] # Ldd/sbin/mii-tool

Libc. so.6 =>/lib64/tls/libc. so.6 (0x0000002a9566c000)

/Lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)

[Root @ localhost ~] # Rpm-qa | grep glibc

Glibc-2.3.4-2.13

Compat-glibc-2.3.2-95.30

Glibc-utils-2.3.4-2.13

Glibc-common-2.3.4-2.13

Glibc-headers-2.3.4-2.13

Glibc-devel-2.3.4-2.13

Compat-glibc-2.3.2-95.30

Glibc-profile-2.3.4-2.13

Glibc-2.3.4-2.13

Glibc-kernheaders-2.4-9.1.98.EL

Compat-glibc-headers-2.3.2-95.30

Glibc-devel-2.3.4-2.13

[Root @ localhost ~] # Gcc -- version

Gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)

Copyright (C) 2004 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

Warranty; not even for MERCHANTABILITY or fitness for a particle PURPOSE.



View memory information

More/proc/meminfo

Grep MemTotal/proc/meminfo



[Root @ localhost ~] # More/proc/meminfo

MemTotal: 4045176 kB

MemFree: 2424704 kB

Buffers': 96884 kB

Cached: 1027088 kB

SwapCached: 0 kB

Active: 807884 kB

Inactive: 618432 kB

HighTotal: 0 kB

HighFree: 0 kB

LowTotal: 4045176 kB

LowFree: 2424704 kB

SwapTotal: 2031608 kB

SwapFree: 2031608 kB

Dirty: 24 kB

Writeback: 0 kB

Mapped: 346192 kB

Slab: 170056 kB

Committed_AS: 487688 kB

PageTables: 8492 kB

VmallocTotal: 536870911 kB

VmallocUsed: 1748 kB

VmallocChunk: 536868683 kB

HugePages_Total: 0

HugePages_Free: 0

Hugepagesize: 2048 kB

[Root @ localhost ~] # Grep MemTotal/proc/meminfo

MemTotal: 4045176 kB

[Root @ localhost ~] #
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.