Código: Seleccionar todo
#!/bin/bash
lshw -html >> lshw.html
echo "Busca el archivo lshw.html en tu directorio local"Código: Seleccionar todo
sudo sh lshwinfo.shEnlaces útiles al respecto:
- Cómo usar lshw en Linux (con un ejemplo práctico): https://es.linux-console.net/?p=7770
- Redirige la salida de comandos de Linux a un archivo: https://itsfoss.com/es/redirige-salida-archivo-linux/
- Página del manual de lshw:
Código: Seleccionar todo
man lshwLSHW(1) LSHW(1)
NAME
lshw - list hardware
SYNOPSIS
lshw [ -version ]
lshw [ -help ]
lshw [ -X ]
lshw [ [ -html ] [ -short ] [ -xml ] [ -json ] [ -businfo ] ] [ -dump filename ] [ -class class... ]
[ -disable test... ] [ -enable test... ] [ -sanitize ] [ -numeric ] [ -quiet ] [ -notime ]
DESCRIPTION
lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can re‐
port exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache con‐
figuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and on some PowerPC machines (PowerMac G4 is
known to work).
It currently supports DMI (x86 and IA-64 only), OpenFirmware device tree (PowerPC only), PCI/AGP, CPUID (x86),
IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB.
-version
Displays the version of lshw and exits.
-help Displays the available command line options and quits.