欢迎来到天天文库
浏览记录
ID:20433372
大小:105.05 KB
页数:7页
时间:2018-10-11
《linux查看硬件信息的命令详解》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、linux查看硬件信息命令和教程详解众所周知,Linux大部分操作是通过命令实现的,并不像windows那么直观。linux查看硬件信息也是需要通过linux查看硬件信息命令查询的,下面小编来分享一下linux杏看硬件信息的方法和命令写法。$vim/proc/net/bonding/bondOEthernetChannelBondingDriver:v3.6.O(September26,2009)BondingMode:fault-tolerance(active-backup)PrimarySlave:.ethO(prim
2、ary—reselectalways)CurrentlyActiveSlave:ethOMilStatus:upMilPollingInterval(ms):100UpDelay(ms):600000DownDelay(ms):0SiaveInterface:ethOMilStatus:upSpeed:1000MbpsDuplex:fullLinkFailureCount:0PermanentHWaddr:74:86:7a:d2:f7:64SlavequeueID:0SiaveInterface:ethlMilStatus:
3、upSpeed:1000MbpsDuplex:fullLinkFailureCount:0PermanentHWaddr:74:86:7a:d2:f7:65SlavequeueID:0cpuIscpu命令,査看的是cpu的统计信息.blue@blue-pc:-$IscpuArchitecture:i686#cpu架构CPUop-mode(s):32-bit,64-bitByteOrder:LittleEndian#小尾序CPU(s):4#总共有4核On-lineCPU(s)list:0-3Thread(s)percore:1
4、#每个cpu核,只能支持一个线程,即不支持超线程Core(s)persocket:4#每个cpu,有4个核Socket(s):1#总共有1一个cpuVendorID:Genuinelntel#cpu产商intelCPUfamily:6Model:42Stepping:7CPUMHz:BogoMIPS:Virtualization:L1dcache:L1icache:1600.0005986.12VT-x#支持cpu虚拟化技术32K32KL2cache:256KL3cache:6144K査看/proc/cpuinfo,可以知道
5、每个cpu信息,如每个CPU的型号,主频等#cat/proc/cpuinfoprocessor:0vendor_id:Genuinelntelcpufamily:6model:42modelname:Intel(R)Core(TM)i5-2320CPU@3.00GHz上面输出的是第一个cpu部分信息,还有3个cpu信息省略了。内存概要査看内存情况free-mtotalusedfreesharedbufferscachedMem:39263651274012404-/+buffers/cache:3235691Swap:953
6、6319505这里的单位是MB,总共的内存是3926MB。査看内存详细使用#cat/proc/meminfoMemTotal:4020868kBMemFree:230884kBBuffers:7600kBCached:454772kBSwapCached:836kB査看内存硬件信息dmidecode-tmemory#dmidecode2.11SMBIOS2.7present.Handle0x0008,DMItype16,23bytesPhysicalMemoryArrayLocation:SystemBoardOrMothe
7、rboardMaximumCapacity:32GB••■•HandleOxOOOA,DMItype17,34bytes••■•MemoryDeviceArrayHandle:0x0008ErrorInformationHandle:NotProvidedTotalWidth:64bitsDataWidth:64bitsSize:4096MB我的主板有4个槽位,只用了一个槽位,上面插了一条4096MB的内存。磁盘査看硬盘和分区分布#Isblksda8:00465.8G0disk
8、—sda18
9、—sda28
10、—sda38
11、—s
12、da48
13、—sda581—sda68显示很直观NAMEMAJ:MINRMSIZEROTYPEMOUNTPOINT101G0part/boot209.3G0part[SWAP]3074.5G0part/401K0part50111.8G0part/home60269.2G0part如果要看硬
此文档下载收益归作者所有