hw-list.rst
changeset 1387 7ec89ebc4498
parent 899 7b4265c8d324
child 1388 4639edd57c1a
equal deleted inserted replaced
1386:864237ce5f1b 1387:7ec89ebc4498
       
     1 .. -*- coding: utf-8; -*-
       
     2 .. include:: HEADER.rst
       
     3 
       
     4 ================
       
     5  List hardware.
       
     6 ================
       
     7 .. contents::
       
     8 
       
     9 Connon method 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   ``hwinfo --short``
       
    19                 Overview of all hardware, as well as more detailed info.
       
    20   ``lshw``
       
    21                 Another program for listing hardware.
       
    22   ``lshw -html | w3m -T text/html``
       
    23                 Lists hardware with HTML output in the w3m web browser.
       
    24   ``uptime``
       
    25                 Current time elapsed since last reboot, users, and load average.
       
    26   ``lsusb``
       
    27                 USB buses and attached devices.
       
    28 
       
    29 Graphics card.
       
    30 ==============
       
    31 
       
    32   ``glxinfo``
       
    33                 Details about OpenGL, the Xserver, and your graphics card.
       
    34   ``glxinfo | grep direct``
       
    35                 Do you have direct 3d rendering?
       
    36   ``glxinfo | grep vendor``
       
    37                 Graphics card vendor.
       
    38   ``lspci | grep VGA``
       
    39                 Specific graphics card model.
       
    40   ``glxgears``
       
    41                 A simple 3d benchmark, prints frame rate to the terminal.
       
    42   ``xrandr``
       
    43                 Supported display resolutions.
       
    44 
       
    45 Audio.
       
    46 ======
       
    47 
       
    48   ``lspci | grep Audio``
       
    49                 Audio controller.
       
    50   ``aplay --list-devices``
       
    51                 More audio device information.
       
    52 
       
    53 Software versions.
       
    54 ==================
       
    55 
       
    56   ``cat /etc/issue``
       
    57                 Current distribution and version.
       
    58   ``apt-cache showpkg packagename``
       
    59                 Packagename’s version and dependencies.
       
    60   ``uname -r``
       
    61                 Linux kernel version.
       
    62   ``uname -a``
       
    63                 All kernel details.
       
    64 
       
    65 Networking.
       
    66 ===========
       
    67 
       
    68   ``lspci | grep Ethernet``
       
    69                 Ethernet controllers.
       
    70   ``ip addr show``
       
    71                 List of netword devices, assigned IP addresses and MAC addresses.
       
    72   ``ifconfig``
       
    73                 Networking interfaces, IP addresses, and more.
       
    74 
       
    75 Processor.
       
    76 ==========
       
    77 
       
    78   ``cat /proc/cpuinfo``
       
    79                 All processors, clock speeds, flags, and more.
       
    80   ``cat /proc/loadavg``
       
    81                 Processor load average for the last 1, 5, and 15 minutes.
       
    82   ``top``
       
    83                 Press C key to sort processes by CPU usage.
       
    84 
       
    85 Memory.
       
    86 =======
       
    87 
       
    88   ``cat /proc/meminfo``
       
    89                 Amount of RAM and swap, and how much is being used for what.
       
    90   ``free -m``
       
    91                 Total, used, and free memory shown in MB.
       
    92   ``top``
       
    93                 Press M key to sort processes by memory usage.
       
    94 
       
    95 Hard disks.
       
    96 ===========
       
    97 
       
    98   ``df -H``
       
    99                 Partitions, as well as their mount-points and usage in GB.
       
   100   ``sudo fdisk -l``
       
   101                 All partitions, their device names, and positions on disk.
       
   102 
       
   103