hardware devices FIXME (find the the rest of command examples and add here) - alex-aleyan/linux_wiki GitHub Wiki

  • dmesg good for device installation, provides information on the system.
    • dmesg | grep -i us
    • dmesg | grep -i tty
    • dmesg | grep -i memory
    • dmesg | grep -i dma
    • cat /var/log/dmesg | les contains output of the dmesg
  • lsusb, lscpu, lshal, lshal, lspci.

DMIDECODE:

  dmidecode --type <KEYWORD>:
  0  BIOS
  1  System
  2  Baseboard
  3  Chassis
  4  Processor
  5  Memory Controller
  6  Memory Module
  7  Cache
  8  Port Connector
  9  System Slots
  10 On Board Devices
  11 OEM Strings
  12 System Configuration Options
  13 BIOS Language
  14 Group Associations
  15 System Event Log
  16 Physical Memory Array
  17 Memory Device
  18 32-bit Memory Error
  19 Memory Array Mapped Address #total RAM info
  20 Memory Device Mapped Address #info per RAM IC
  dmidecode -d /dev/mem
  dmidecode -s <KEYWORD>:
  bios-vendor
  bios-version
  bios-release-date
  system-manufacturer
  system-product-name
  system-version
  system-serial-number
  system-uuid
  baseboard-manufacturer
  baseboard-product-name
  baseboard-version
  baseboard-serial-number
  baseboard-asset-tag
  chassis-manufacturer
  chassis-type
  chassis-version
  chassis-serial-number
  chassis-asset-tag
  processor-family
  processor-manufacturer
  processor-version
  processor-frequency

UNAME:

  uname -a
  -a, --all                print all information, in the following order,
                             except omit -p and -i if unknown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type or "unknown"
  -i, --hardware-platform  print the hardware platform or "unknown"
  -o, --operating-system   print the operating system

==lscpu== 1.

  lscpu

LSPCI:

  lspci <option>  Basic display modes:
  -mm		Produce machine-readable output (single -m for an obsolete format)
  -t		Show bus tree
  
  Display options:
  -v		Be verbose (-vv for very verbose)
  -k		Show kernel drivers handling each device
  -x		Show hex-dump of the standard part of the config space
  -xxx		Show hex-dump of the whole config space (dangerous; root only)
  -xxxx		Show hex-dump of the 4096-byte extended config space (root only)
  -b		Bus-centric view (addresses and IRQ's as seen by the bus)
  -D		Always show domain numbers
  
  Resolving of device ID's to names:
  -n		Show numeric ID's
  -nn		Show both textual and numeric ID's (names & numbers)
  -q		Query the PCI ID database for unknown ID's via DNS
  -qq		As above, but re-query locally cached entries
  -Q		Query the PCI ID database for all ID's via DNS
  
  Selection of devices:
  -s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]]	Show only devices in selected slots
  -d [<vendor>]:[<device>]			Show only devices with specified ID's
  
  Other options:
  -i <file>	Use specified ID database instead of /usr/share/hwdata/pci.ids
  -p <file>	Look up kernel modules in a given file instead of default modules.pcimap
  -M		Enable `bus mapping' mode (dangerous; root only)
  
  PCI access options:
  -A <method>	Use the specified PCI access method (see `-A help' for a list)
  -O <par>=<val>	Set PCI access parameter (see `-O help' for a list)
  -G		Enable PCI access debugging
  -H <mode>	Use direct hardware access (<mode> = 1 or 2)
  -F <file>	Read PCI configuration dump from a given file

udevadm:

  udevadm info --query=all --name/dev/sda

fdisk

du:

df:

free:

lshw:

lsblk:

lsscsi:

sysfs:

⚠️ **GitHub.com Fallback** ⚠️