標籤: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-硬體資訊查看