|
1 .. -*- coding: utf-8; -*- |
|
2 .. include:: HEADER.rst |
|
3 |
|
4 ================ |
|
5 List hardware. |
|
6 ================ |
|
7 .. contents:: |
|
8 |
|
9 List hardware under Linux. |
|
10 ========================== |
|
11 |
|
12 ``dmesg`` |
|
13 Messages about detecting new hardware. |
|
14 ``lshal -m`` |
|
15 monitor for hardware changes |
|
16 ``lspci`` |
|
17 All PCI devices. |
|
18 ``lspci -vvv`` |
|
19 All PCI devices. Very verbose output. |
|
20 ``hwinfo --short`` |
|
21 Overview of all hardware, as well as more detailed info. |
|
22 ``lshw`` |
|
23 Another program for listing hardware. |
|
24 ``lshw -html | w3m -T text/html`` |
|
25 Lists hardware with HTML output in the w3m web browser. |
|
26 ``uptime`` |
|
27 Current time elapsed since last reboot, users, and load average. |
|
28 ``lsusb`` |
|
29 USB buses and attached devices. |
|
30 ``lsusb -vvv`` |
|
31 USB buses and attached devices. Very verbose output. |
|
32 |
|
33 List hardware under Windows. |
|
34 ============================ |
|
35 |
|
36 ``%WINDIR%\system32\msinfo32.exe`` |
|
37 msinfo32 |
|
38 http://www.cpuid.com/softwares/cpu-z.html |
|
39 cpu-z |
|
40 ``%WINDIR%\system32\dxdiag.exe`` |
|
41 DirectX Diagnostic Tool |
|
42 ``%WINDIR%\system32\devmgmt.msc /s`` |
|
43 Device Manager |
|
44 |
|
45 List memory. |
|
46 ============ |
|
47 |
|
48 ``free`` |
|
49 Total, used, and free memory. |
|
50 ``free -m`` |
|
51 Total, used, and free memory shown in MB. |
|
52 ``cat /proc/meminfo`` |
|
53 Amount of RAM and swap, and how much is being used for what. |
|
54 ``top`` |
|
55 Real-time memory consumption. Press M key to sort processes by memory usage. |
|
56 |
|
57 :: |
|
58 |
|
59 $ cat /proc/meminfo |
|
60 $ sudo lshw -short -C memory |
|
61 $ sudo dmidecode --type memory |
|
62 |
|
63 $ sudo apt-get install i2c-tools |
|
64 $ sudo modprobe eeprom |
|
65 $ sudo decode-dimms |
|
66 |
|
67 $ read-edid |
|
68 |
|
69 Graphics card. |
|
70 ============== |
|
71 |
|
72 ``glxinfo`` |
|
73 Details about OpenGL, the Xserver, and your graphics card. |
|
74 ``glxinfo | grep direct`` |
|
75 Do you have direct 3d rendering? |
|
76 ``glxinfo | grep vendor`` |
|
77 Graphics card vendor. |
|
78 ``lspci | grep VGA`` |
|
79 Specific graphics card model. |
|
80 ``glxgears`` |
|
81 A simple 3d benchmark, prints frame rate to the terminal. |
|
82 ``xrandr`` |
|
83 Supported display resolutions. |
|
84 ``xdpyinfo`` |
|
85 Utility for displaying information about an X server. |
|
86 ``xvinfo`` |
|
87 Print out X-Video extension adaptor information. |
|
88 ``xdriinfo`` |
|
89 Query configuration information of DRI drivers. |
|
90 |
|
91 Audio. |
|
92 ====== |
|
93 |
|
94 ``lspci | grep Audio`` |
|
95 Audio controller. |
|
96 ``aplay --list-devices`` |
|
97 More audio device information. |
|
98 |
|
99 Software versions. |
|
100 ================== |
|
101 |
|
102 ``cat /etc/issue`` |
|
103 Current distribution and version. |
|
104 ``apt-cache showpkg packagename`` |
|
105 Packagename’s version and dependencies. |
|
106 ``uname -r`` |
|
107 Linux kernel version. |
|
108 ``uname -a`` |
|
109 All kernel details. |
|
110 |
|
111 Networking. |
|
112 =========== |
|
113 |
|
114 ``lspci | grep Ethernet`` |
|
115 Ethernet controllers. |
|
116 ``ip addr show`` |
|
117 List of netword devices, assigned IP addresses and MAC addresses. |
|
118 ``ifconfig`` |
|
119 Networking interfaces, IP addresses, and more. |
|
120 |
|
121 Processor. |
|
122 ========== |
|
123 |
|
124 ``cat /proc/cpuinfo`` |
|
125 All processors, clock speeds, flags, and more. |
|
126 ``cat /proc/loadavg`` |
|
127 Processor load average for the last 1, 5, and 15 minutes. |
|
128 ``top`` |
|
129 Press C key to sort processes by CPU usage. |
|
130 |
|
131 Hard disks. |
|
132 =========== |
|
133 |
|
134 ``df -H`` |
|
135 Partitions, as well as their mount-points and usage in GB. |
|
136 ``sudo fdisk -l`` |
|
137 All partitions, their device names, and positions on disk. |
|
138 ``hwinfo --disk`` or ``lshw -class disk`` |
|
139 Disk hardware info. |
|
140 ``smartctl`` |
|
141 Show S.M.A.R.T. reports about disk heals. |
|
142 |
|
143 BIOS info. |
|
144 ========== |
|
145 |
|
146 Human readable string with BIOS.motheboard names:: |
|
147 |
|
148 $ dd if=/dev/mem bs=64k skip=15 count=1 | strings |
|
149 |