码迷,mamicode.com
首页 > 系统相关 > 详细

linux-硬件信息查看

时间:2014-10-16 19:55:13      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:des   style   io   os   使用   ar   sp   数据   2014   

在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

linux-硬件信息查看

标签:des   style   io   os   使用   ar   sp   数据   2014   

原文地址:http://www.cnblogs.com/bacazy/p/4029385.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!