查看linux系统信息

查看linux系统信息(原创加转载)
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3     2.9G  259M  2.5G  10% /
/dev/cciss/c0d0p7     123G  2.0G  115G   2% /quark
/dev/cciss/c0d0p6     1.9G   96M  1.8G   6% /var
/dev/cciss/c0d0p2     2.9G  2.1G  670M  76% /usr
/dev/cciss/c0d0p1     190M   11M  170M   6% /boot
tmpfs                1013M     0 1013M   0% /dev/shm
[root@localhost ~]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/quark            /quark                  ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/boot1            /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SW-cciss/c0d0p5   swap                    swap    defaults        0 0
[root@localhost ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Kernel \r on an \m
[root@localhost ~]# lsb_release
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
[root@localhost ~]# cat /etc/issue | grep Linux
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
[root@localhost ~]#
[root@localhost ~]# cat  /proc/version sion
Linux version 2.6.18-53.el5 ( [email protected]) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Wed Oct 10 16:34:02 EDT 2007
cat: sion: No such file or directory
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU/Linux
[root@localhost ~]# uname -r
2.6.18-53.el5
[root@localhost ~]#
 
[root@localhost ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
      8  Intel(R) Xeon(R) CPU           E5440  @ 2.83GHz
[root@localhost ~]#
[root@localhost ~]# cat /proc/cpuinfo | grep physical | uniq -c
      4 physical id      : 0
      4 physical id      : 1
[root@localhost ~]# getconf WORD_BIT
32
[root@localhost ~]# getconf LONG_BIT
32       (说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)
[root@localhost ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
8        (结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)

最后再完整看cpu物理信息:
[root@localhost ~]# dmidecode | grep -A48 'Processor Information$'
Processor Information
        Socket Designation: Proc 1
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: 76 06 01 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 23, Stepping 6
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (Fast floating-point save and restore)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Hyper-threading technology)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Not Specified
        Voltage: 1.4 V
        External Clock: 1333 MHz
        Max Speed: 4800 MHz
        Current Speed: 2833 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0710
        L2 Cache Handle: 0x0720
        L3 Cache Handle: 0x0730
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
--
Processor Information
        Socket Designation: Proc 2
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: 76 06 01 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 23, Stepping 6
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (Fast floating-point save and restore)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Hyper-threading technology)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Not Specified
        Voltage: 1.4 V
        External Clock: 1333 MHz
        Max Speed: 4800 MHz
        Current Speed: 2833 MHz
        Status: Populated, Idle
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0716
        L2 Cache Handle: 0x0726
        L3 Cache Handle: 0x0736
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
[root@localhost ~]#

你可能感兴趣的:(linux,职场,休闲)