How to view information about a Linux Server

Source: Internet
Author: User
Sometimes you need to collect various information about the server, such as CPU information, memory information, Linux version information, and various software information installed. The following describes how to view the main indicators. 1. view the Linux release information [root @ pcmweb ~] # Cat/etc/issue
Red Hat Enterprise Linux Server Release 5 (tikanga)
Kernel on an m2. view Linux kernel information [root @ pcmweb ~] # Uname-R
2.6.18-8. el5xen3. View CPU information [root @ pcmxexdb ~] # Cat/proc/cpuinfo
Processor: 0
Vendor_id: genuineintel
CPU family: 6
Model: 23
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Stepping: 6
CPU MHz: 2992.540
Cache size: 6144 KB
Physical ID: 0
Siblings: 4
Core ID: 0
CPU cores: 4
FPU: Yes
Fpu_exception: Yes
Cpuid level: 10
WP: Yes
Flags: fpu vme de pse tsc msr pae mce cx8 APIC Sep mtrr pge mca cmov Pat limit 36 clflush dts acpi mmx fxsr SSE sse2 ss ht tm syscall NX lm limit PNI monitor limit vmx est TM2 cx16 xtpr limit
Bogomips: 5989.06
Clflush size: 64
Cache_alignment: 64
Address sizes: 38 BITs physical, 48 bits virtual
Power Management:
 
Processor: 1
Vendor_id: genuineintel
CPU family: 6
Model: 23
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Stepping: 6
CPU MHz: 2992.540
Cache size: 6144 KB
Physical ID: 1
Siblings: 4
Core ID: 0
CPU cores: 4
FPU: Yes
Fpu_exception: Yes
Cpuid level: 10
WP: Yes
Flags: fpu vme de pse tsc msr pae mce cx8 APIC Sep mtrr pge mca cmov Pat limit 36 clflush dts acpi mmx fxsr SSE sse2 ss ht tm syscall NX lm limit PNI monitor limit vmx est TM2 cx16 xtpr limit
Bogomips: 5985.40
Clflush size: 64
Cache_alignment: 64
Address sizes: 38 BITs physical, 48 bits virtual
Power Management:
 
Processor: 2
Vendor_id: genuineintel
CPU family: 6
Model: 23
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Stepping: 6
CPU MHz: 2992.540
Cache size: 6144 KB
Physical ID: 0
Siblings: 4
Core ID: 1
CPU cores: 4
FPU: Yes
Fpu_exception: Yes
Cpuid level: 10
WP: Yes
Flags: fpu vme de pse tsc msr pae mce cx8 APIC Sep mtrr pge mca cmov Pat limit 36 clflush dts acpi mmx fxsr SSE sse2 ss ht tm syscall NX lm limit PNI monitor limit vmx est TM2 cx16 xtpr limit
Bogomips: 5985.02
Clflush size: 64
Cache_alignment: 64
Address sizes: 38 BITs physical, 48 bits virtual
Power Management:
 
.................. (Omitted rows)
Processor: 7
Vendor_id: genuineintel
CPU family: 6
Model: 23
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Stepping: 6
CPU MHz: 2992.540
Cache size: 6144 KB
Physical ID: 1
Siblings: 4
Core ID: 3
CPU cores: 4
FPU: Yes
Fpu_exception: Yes
Cpuid level: 10
WP: Yes
Flags: fpu vme de pse tsc msr pae mce cx8 APIC Sep mtrr pge mca cmov Pat limit 36 clflush dts acpi mmx fxsr SSE sse2 ss ht tm syscall NX lm limit PNI monitor limit vmx est TM2 cx16 xtpr limit
Bogomips: 5985.29
Clflush size: 64
Cache_alignment: 64
Address sizes: 38 BITs physical, 48 bits virtual
Power Management:

The information displayed in this way is complex and the result is not easy to see. In fact, only two pieces of useful information (processor and physical ID) can be simplified using commands. The command is as follows:

Physical ID (as follows, it indicates that this machine has two CPUs, 0 is one, and 1 is one)

[Root @ pcmxexdb ~] # Cat/proc/cpuinfo | grep "physical ID"
Physical ID: 0
Physical ID: 1
Physical ID: 0
Physical ID: 1
Physical ID: 0
Physical ID: 1
Physical ID: 0
Physical ID: 1

Processor (as follows, indicating a total of 8 cores)

[Root @ pcmxexdb ~] # Cat/proc/cpuinfo | grep Processor
Processor: 0
Processor: 1
Processor: 2
Processor: 3
Processor: 4
Processor: 5
Processor: 6
Processor: 7

In summary, this machine has two 4-core CPUs.

4. view the memory information [root @ pcmxexdb ~] # Cat/proc/meminfo
Memtotal: 8174388 KB
Memfree: 4130912 KB
.............. (Omitted)
Swaptotal: 8393952 KB
..............

A total of 8 GB memory and 8 GB swap space.

5. View hard disk information [root @ pcmweb ~] # Fdisk-l
 
Disk/dev/SDA: 1499.8 GB, 1499883110400 bytes
255 heads, 63 sectors/track, 182350 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes
 
Device boot start end blocks ID system
/Dev/sda1*1 13 104391 83 Linux
/Dev/sda2 14 182350 1464621952 + 8e Linux LVM

The total disk space is about TB.

6. View partition information [root @ pcmweb ~] # DF-H
File System capacity used available % mount point
/Dev/mapper/VG00-LV04
307 GB 5.0g 286g 2%/
/Dev/sda1 99 m 12 m 82 m 13%/boot
Tmpfs 3.9g 0 3.9g 0%/dev/SHM
/Dev/mapper/VG00-LV03
757g 2.1g 716g 1%/ftp
/Dev/mapper/VG00-LV01
3.9g 137 m 3.6g 4%/tmp
/Dev/mapper/VG00-LV02
284g 541 m 269g 1%/usr/local

 

 

 

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.