diff --git a/sheets/lshw b/sheets/lshw new file mode 100644 index 0000000..5d4a82e --- /dev/null +++ b/sheets/lshw @@ -0,0 +1,33 @@ +# lshw +# Get hardware information on Linux + +# Generate full information report about all detected hardware +lshw + +# Display hardware information in short +lshw -short + +# Display only memory information +lshw -short -class memory + +# Display processor information +lshw -class processor + +# Display the disk drives with the disk class +lshw -short -class disk + +# Display information about the partitions and controllers also, +# specify the storage and volume class along with the disk class +lshw -short -class disk -class storage -class volume + +# Network adapter information +lshw -class network + +# Display the address details of pci, usb, scsi and ide devices +lshw -businfo + +# Generate report in html format +lshw -html > hardware.html + +# Generate report in xml format +lshw -html > hardware.html diff --git a/sheets/udevadm b/sheets/udevadm new file mode 100644 index 0000000..3d7e5e6 --- /dev/null +++ b/sheets/udevadm @@ -0,0 +1,15 @@ +# udevadm +# udev management tool + +# Reload udev rules without reboot +udevadm control --reload-rules && udevadm trigger + +# Get sysfs path of a device +udevadm info -q path -n /dev/sda + +# Get a list of attributes for a specific device +udevadm info -a -p $(udevadm info -q path -n /dev/sdb) + +# Get an entry for each action taken by KERNEL and UDEV +udevadm monitor --property +