查看主板型号:
# dmidecode |grep -A16 "System Information$"
内存槽及内存条
# dmidecode |grep -A16 "Memory Device$"
硬盘
#fdisk -l
#smartctl -a /dev/sda
网卡信息
# mii-tool
查看cpu信息(型号)
# cat /proc/cpuinfo | grep name | uniq -c
2 model name : Intel(R) Pentium(R) CPU G620 @ 2.60GHz
# cat /proc/cpuinfo | grep physical | uniq -c
查看当前cpu运行系统位数
# getconf LONG_BIT
32 (说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)
# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
2 (结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
# file /bin/ls 命令
[root@primary home]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped
#arch命令
[root@primary home]# arch
x86_64
#uname -a
完整看cpu详细信息, 不过大部分我们都不关心而已.
# dmidecode | grep -A81 'Processor Information'
查看主板型号
# dmidecode |grep -A16 "System Information$"
内存槽及内存条
# dmidecode |grep -A16 "Memory Device$"
查看内存信息
# cat /proc/meminfo
查看当前操作系统内核信息
# uname -a
Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686
i386 GNU/Linux
# uname -r (内核版本)
2.6.32-279.el6.i686
查看当前系统发行版本信息
# cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
# lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.3 (Santiago)
Release: 6.3
Codename: Santiago
***********************老师给的一个文档,已经整理得很好,实验之后在增添了一些
阅读(1579) | 评论(0) | 转发(0) |