linux-硬件信息查看

在ubuntu平台上使用命令方式查看系统信息

1、列出所有的PCI设备:lspci

  显示系统中所有的PCI设备,参数v:查看硬件的详细信息;n,查看供应商和设备代码;x,显示硬件设置信息的二进制数据。

  00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
  Subsystem: Lenovo Device 3975
  Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
  Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
  Latency: 0
  Capabilities: <access denied>

  ...........

2、查看内核信息:uname

  $uname -a

  Linux zhangcheng 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

3、显示ubuntu版本信息:lsb_release -a

  Distributor ID: Ubuntu
  Description: Ubuntu 14.04.1 LTS
  Release: 14.04
  Codename: trusty

4、查看内核加载的模块:lsmod

  Module   Size   Used by

  bnep    19624    2
  rfcomm    69160    0
  bluetooth    391136    10 bnep,rfcomm
  binfmt_misc 17468 1
4、查看USB设备:lsusb

Bus 002 Device 005: ID 5986:0292 Acer, Inc
Bus 002 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 002 Device 003: ID 24ae:2000
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

5、查看CPU信息:cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz
stepping : 7
microcode : 0x17
cpu MHz : 800.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0

6、查看内存使用情况:free -mt

    total   used   free   shared   buffers   cached
Mem:    5912    1740    4171    246    80    1008

7、列出当前进程:ps

PID TTY   TIME   CMD
2461 pts/1 00:00:00   bash
2840 pts/1 00:00:00    ps

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。