欢迎来到天天文库
浏览记录
ID:38841571
大小:306.82 KB
页数:24页
时间:2019-06-20
《linux系统查看硬件信》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、linux系统查看硬件信息的方法系统之家下载站http://www.xitong114.com/用过Linux系统的人都知道这么一个情况,那就是Linux大部分操作是通过命令实现的,并不像Windows那么直观。linux查看硬件信息也是需要通过命令查询才可以看得到硬件的信息,那linux系统如何查看硬件信息呢?今天,小编就和大家说一下linux系统查看硬件信息的方法。步骤如下:1、CPUlscpu命令,查看的是cpu的统计信息。blue@blue-pc:~$lscpuArchitecture:i686#cpu架构CPUop-mode(s):32-bit,64-bit
2、ByteOrder:LittleEndian#小尾序CPU(s):4#总共有4核On-lineCPU(s)list:0-3Thread(s)percore:1#每个cpu核,只能支持一个线程,即不支持超线程Core(s)persocket:4#每个cpu,有4个核Socket(s):1#总共有1一个cpuVendorID:GenuineIntel#cpu产商intelCPUfamily:6Model:42Stepping:7CPUMHz:1600.000BogoMIPS:5986.12Virtualization:VT-x#支持cpu虚拟化技术L1dcache:32K
3、L1icache:32KL2cache:256KL3cache:6144K查看/proc/cpuinfo,可以知道每个cpu信息,如每个CPU的型号,主频等。#cat/proc/cpuinfoprocessor:0vendor_id:GenuineIntelcpufamily:6model:42modelname:Intel(R)Core(TM)i5-2320CPU@3.00GHz。。。。。上面输出的是第一个cpu部分信息,还有3个cpu信息省略了。2、内存概要查看内存情况free-mtotalusedfreesharedbufferscachedMem:392636
4、51274012404-/+buffers/cache:3235691Swap:9536319505这里的单位是MB,总共的内存是3926MB。查看内存详细使用#cat/proc/meminfoMemTotal:4020868kBMemFree:230884kBBuffers:7600kBCached:454772kBSwapCached:836kB。。。。。查看内存硬件信息dmidecode-tmemory#dmidecode2.11SMBIOS2.7present.Handle0x0008,DMItype16,23bytesPhysicalMemoryArrayL
5、ocation:SystemBoardOrMotherboard。。。。MaximumCapacity:32GB。。。。Handle0x000A,DMItype17,34bytes。。。。MemoryDeviceArrayHandle:0x0008ErrorInformationHandle:NotProvidedTotalWidth:64bitsDataWidth:64bitsSize:4096MB。。。。。我的主板有4个槽位,只用了一个槽位,上面插了一条4096MB的内存。3、磁盘查看硬盘和分区分布#lsblkNAMEMAJ:MINRMSIZEROTYPEMOUN
6、TPOINTsda8:00465.8G0disk├—sda18:101G0part/boot├—sda28:209.3G0part[SWAP]├—sda38:3074.5G0part/├—sda48:401K0part├—sda58:50111.8G0part/home└—sda68:60269.2G0part显示很直观如果要看硬盘和分区的详细信息#fdisk-lDisk/dev/sda:500.1GB,500107862016bytes255heads,63sectors/track,60801cylinders,total976773168sectorsUnits
7、=sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/4096bytesI/Osize(minimum/optimal):4096bytes/4096bytesDiskidentifier:0x00023728DeviceBootStartEndBlocksIdSystem/dev/sda1*20482148351107315283Linux/dev/sda2214835221680127976588882Linuxswap/Solaris/dev/sda3216801281779
此文档下载收益归作者所有