added lshw and udevadm
parent
e8171ba1ca
commit
be1a006a09
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue